Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/PPageSubtitles.cpp')
-rw-r--r--src/mpc-hc/PPageSubtitles.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mpc-hc/PPageSubtitles.cpp b/src/mpc-hc/PPageSubtitles.cpp
index a471a3328..8b60c1822 100644
--- a/src/mpc-hc/PPageSubtitles.cpp
+++ b/src/mpc-hc/PPageSubtitles.cpp
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2014 see Authors.txt
+ * (C) 2006-2015 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -274,11 +274,12 @@ BOOL CPPageSubtitles::OnToolTipNotify(UINT id, NMHDR* pNMHDR, LRESULT* pResult)
switch (nID) {
case IDC_EDIT4:
- auto& substituteEmpty = [](CString & hotkey) {
- if (hotkey.IsEmpty()) {
+ auto substituteEmpty = [](CString && hotkey) -> CString && {
+ if (hotkey.IsEmpty())
+ {
hotkey.LoadString(IDS_HOTKEY_NOT_DEFINED);
}
- return hotkey;
+ return std::move(hotkey);
};
::SendMessage(pNMHDR->hwndFrom, TTM_SETMAXTIPWIDTH, 0, 320);
m_strToolTip.Format(IDS_SUBTITLE_DELAY_STEP_TOOLTIP,