diff options
author | elfmz <fenix1905@tut.by> | 2022-02-15 03:11:28 +0300 |
---|---|---|
committer | elfmz <fenix1905@tut.by> | 2022-02-15 03:11:28 +0300 |
commit | 88858d0db19bdfb6fbdb997cecd7c974abe730d1 (patch) | |
tree | ceba68e5becf67081bd0ca1361f803f60e8d6885 /far2l/src/setattr.cpp | |
parent | a14bebeeaf7a003e112b3ffd71261b2f4435b83d (diff) |
continue MSG() macro cleanup
Diffstat (limited to 'far2l/src/setattr.cpp')
-rw-r--r-- | far2l/src/setattr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/far2l/src/setattr.cpp b/far2l/src/setattr.cpp index 9aa98e07..5b9bd525 100644 --- a/far2l/src/setattr.cpp +++ b/far2l/src/setattr.cpp @@ -444,7 +444,7 @@ void ShellSetFileAttributesMsg(const wchar_t *Name) FARString strOutFileName=Name; TruncPathStr(strOutFileName,Width); CenterStr(strOutFileName,strOutFileName,Width+4); - Message(0,0,MSG(MSetAttrTitle),MSG(MSetAttrSetting),strOutFileName); + Message(0,0,MSetAttrTitle,MSetAttrSetting,strOutFileName); PreRedrawItem preRedrawItem=PreRedraw.Peek(); preRedrawItem.Param.Param1=Name; PreRedraw.SetParam(preRedrawItem.Param); @@ -536,12 +536,12 @@ static void SystemProperties(const FARString &strSelName) if (lines.empty()) return; - std::vector<const wchar_t *> lines_wz; - for (const auto & l : lines) - lines_wz.push_back(l.c_str()); - lines_wz.push_back(MSG(MHOk)); - - MessageEx(0, 1, MSG(MSetAttrSystemDialog), &lines_wz[0], lines_wz.size()); + Messager m; + m.Add(MSetAttrSystemDialog); + for (const auto &l : lines) + m.Add(l); + m.Add(MHOk); + m.Show(0, 1); } static bool CheckFileOwnerGroup(DialogItemEx &EditItem, bool (WINAPI *GetFN)(const wchar_t *,const wchar_t *, FARString &), |