From 56d17e27292650c2020b3f2fc96eb60aa8eb8dc1 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 3 Jan 2018 18:07:47 +0100 Subject: [PATCH] Changed: Constify parameters --HG-- branch : develop --- code/nel/tools/3d/plugin_max/nel_export/nel_export.h | 4 ++-- .../tools/3d/plugin_max/nel_export/nel_export_filetools.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/nel/tools/3d/plugin_max/nel_export/nel_export.h b/code/nel/tools/3d/plugin_max/nel_export/nel_export.h index 75b9807d9..3cf20cf47 100644 --- a/code/nel/tools/3d/plugin_max/nel_export/nel_export.h +++ b/code/nel/tools/3d/plugin_max/nel_export/nel_export.h @@ -81,8 +81,8 @@ public: static void deleteLM(INode& ZeNode); // the export scene struct MUST be initialized before calling this fn void OnNodeProperties (const std::set &listNode); - ULONG SelectFileForSave(HWND Parent, TCHAR* Title, const TCHAR* Mask, std::string &FileName); - ULONG SelectDir(HWND Parent, TCHAR* Title, std::string &Path); + ULONG SelectFileForSave(HWND Parent, const TCHAR* Title, const TCHAR* Mask, std::string &FileName); + ULONG SelectDir(HWND Parent, const TCHAR* Title, std::string &Path); // The nel export objtect CExportNel *_ExportNel; diff --git a/code/nel/tools/3d/plugin_max/nel_export/nel_export_filetools.cpp b/code/nel/tools/3d/plugin_max/nel_export/nel_export_filetools.cpp index cbc1ef88d..11020e4fc 100644 --- a/code/nel/tools/3d/plugin_max/nel_export/nel_export_filetools.cpp +++ b/code/nel/tools/3d/plugin_max/nel_export/nel_export_filetools.cpp @@ -26,7 +26,7 @@ //-------------------------------------------------------------------------------------------------------------- -ULONG CNelExport::SelectFileForSave(HWND Parent, TCHAR* Title, const TCHAR* Mask, std::string &FileName) +ULONG CNelExport::SelectFileForSave(HWND Parent, const TCHAR* Title, const TCHAR* Mask, std::string &FileName) { TCHAR curdir[MAX_PATH]; TCHAR fname[MAX_PATH]; @@ -76,7 +76,7 @@ ULONG CNelExport::SelectFileForSave(HWND Parent, TCHAR* Title, const TCHAR* Mask //-------------------------------------------------------------------------------------------------------------- -ULONG CNelExport::SelectDir(HWND Parent, TCHAR* Title, std::string &Path) +ULONG CNelExport::SelectDir(HWND Parent, const TCHAR* Title, std::string &Path) { TCHAR str[MAX_PATH]; _tcscpy_s(str, MAX_PATH, utf8ToTStr(Path));