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

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2022-02-15 03:11:28 +0300
committerelfmz <fenix1905@tut.by>2022-02-15 03:11:28 +0300
commit88858d0db19bdfb6fbdb997cecd7c974abe730d1 (patch)
treeceba68e5becf67081bd0ca1361f803f60e8d6885 /far2l/src/fileedit.cpp
parenta14bebeeaf7a003e112b3ffd71261b2f4435b83d (diff)
continue MSG() macro cleanup
Diffstat (limited to 'far2l/src/fileedit.cpp')
-rw-r--r--far2l/src/fileedit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/far2l/src/fileedit.cpp b/far2l/src/fileedit.cpp
index 0554cc07..d1381785 100644
--- a/far2l/src/fileedit.cpp
+++ b/far2l/src/fileedit.cpp
@@ -571,7 +571,7 @@ void FileEditor::Init(
*/
if (FAttr!=INVALID_FILE_ATTRIBUTES && FAttr&FILE_ATTRIBUTE_DIRECTORY)
{
- Message(MSG_WARNING,1,MSG(MEditTitle),MSG(MEditCanNotEditDirectory),MSG(MOk));
+ Message(MSG_WARNING,1,MEditTitle,MEditCanNotEditDirectory,MOk);
ExitCode=XC_OPEN_ERROR;
return;
}
@@ -630,7 +630,7 @@ void FileEditor::Init(
if (UserBreak!=1)
{
WINPORT(SetLastError)(SysErrorCode);
- Message(MSG_WARNING|MSG_ERRORTYPE,1,MSG(MEditTitle),MSG(MEditCannotOpen),strFileName,MSG(MOk));
+ Message(MSG_WARNING|MSG_ERRORTYPE,1,MEditTitle,MEditCannotOpen,strFileName,MOk);
ExitCode=XC_OPEN_ERROR;
}
else
@@ -1109,7 +1109,7 @@ int FileEditor::ReProcessKey(int Key,int CalledFromControl)
if (!bInPlace)
{
- Message(MSG_WARNING, 1, L"WARNING!", L"Editor will be reopened with new file!", MSG(MOk));
+ Message(MSG_WARNING, 1, L"WARNING!", L"Editor will be reopened with new file!", MOk);
int UserBreak;
LoadFile(strFullSaveAsName, UserBreak);
// TODO: возможно подобный ниже код здесь нужен (copy/paste из FileEditor::Init()). оформить его нужно по иному
@@ -1296,7 +1296,7 @@ int FileEditor::ReProcessKey(int Key,int CalledFromControl)
}
ChangeEditKeyBar();
} else
- Message(0, 1, MSG(MEditTitle), L"Save file before changing this codepage", MSG(MHOk), nullptr);
+ Message(0, 1, MEditTitle, L"Save file before changing this codepage", MHOk, nullptr);
}
return TRUE;
}
@@ -1601,7 +1601,7 @@ int FileEditor::LoadFile(const wchar_t *Name,int &UserBreak)
BadConversion = !GetStr.IsConversionValid();
if (BadConversion)
{
- Message(MSG_WARNING,1,MSG(MWarning),MSG(MEditorLoadCPWarn1),MSG(MEditorLoadCPWarn2),MSG(MEditorSaveNotRecommended),MSG(MOk));
+ Message(MSG_WARNING,1,MWarning,MEditorLoadCPWarn1,MEditorLoadCPWarn2,MEditorSaveNotRecommended,MOk);
}
if (LastLineCR||!m_editor->NumLastLine)
@@ -2804,7 +2804,7 @@ void FileEditor::SetCodePage(UINT codepage)
{
if (!m_editor->SetCodePage(m_codepage))
{
- Message(MSG_WARNING,1,MSG(MWarning),MSG(MEditorSwitchCPWarn1),MSG(MEditorSwitchCPWarn2),MSG(MEditorSaveNotRecommended),MSG(MOk));
+ Message(MSG_WARNING,1,MWarning,MEditorSwitchCPWarn1,MEditorSwitchCPWarn2,MEditorSaveNotRecommended,MOk);
BadConversion = true;
}