diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-05-21 00:29:17 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-05-21 00:29:17 +0400 |
commit | 41d2b51f1d3ca78a3ef46c4698644375b3586a54 (patch) | |
tree | 3a9019b9be22566a52fa1c9b3a4a680d84364e74 /src/filters/transform | |
parent | 6779000ab8936553d3ff1ae4cfaeb6b718353480 (diff) |
- Use directly the strings' resource IDs when calling CString::Format instead of using the ResStr macro.
- Use AppendFormat instead of using Format on a temporary string and then concatenating it.
Based on a patch by JanWillem32.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4818 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/VSFilter/DirectVobSubPropPage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp b/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp index df3450045..ca23bbac6 100644 --- a/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp +++ b/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp @@ -1103,7 +1103,7 @@ void CDVSPathsPPage::UpdateObjectData(bool fSave) CString chk(_T("123456789")), path, tmp;
int i = 0;
do {
- tmp.Format(ResStr(IDS_RP_PATH), i++);
+ tmp.Format(IDS_RP_PATH, i++);
path = theApp.GetProfileString(ResStr(IDS_R_DEFTEXTPATHES), tmp, chk);
if (path != chk) {
theApp.WriteProfileString(ResStr(IDS_R_DEFTEXTPATHES), tmp, _T(""));
@@ -1111,7 +1111,7 @@ void CDVSPathsPPage::UpdateObjectData(bool fSave) } while (path != chk);
for (i = 0; i < m_paths.GetSize(); i++) {
- tmp.Format(ResStr(IDS_RP_PATH), i);
+ tmp.Format(IDS_RP_PATH, i);
theApp.WriteProfileString(ResStr(IDS_R_DEFTEXTPATHES), tmp, m_paths[i]);
}
} else {
@@ -1121,7 +1121,7 @@ void CDVSPathsPPage::UpdateObjectData(bool fSave) if (!path.IsEmpty()) {
m_paths.Add(path);
}
- tmp.Format(ResStr(IDS_RP_PATH), i++);
+ tmp.Format(IDS_RP_PATH, i++);
path = theApp.GetProfileString(ResStr(IDS_R_DEFTEXTPATHES), tmp, chk);
} while (path != chk);
}
|