From b2d56c8b588f418ced180562edef6c83a641c3fc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 31 Aug 2017 12:10:27 +0200 Subject: loplugin:constparams: shell (clang-cl) Change-Id: I7ffe60d53f4c4b7690efc8bec9d29a4959740d9a --- shell/source/win32/shlxthandler/columninfo/columninfo.cxx | 2 +- shell/source/win32/shlxthandler/infotips/infotips.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/source/win32/shlxthandler/columninfo/columninfo.cxx b/shell/source/win32/shlxthandler/columninfo/columninfo.cxx index b51d00e8e8f9..7f91a1f01c6f 100644 --- a/shell/source/win32/shlxthandler/columninfo/columninfo.cxx +++ b/shell/source/win32/shlxthandler/columninfo/columninfo.cxx @@ -41,7 +41,7 @@ namespace /* private */ size_t ColumnInfoTableSize = SAL_N_ELEMENTS(ColumnInfoTable); -bool IsOOFileExtension(wchar_t* Extension) +bool IsOOFileExtension(wchar_t const * Extension) { for (size_t i = 0; i < OOFileExtensionTableSize; i++) { diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx index 9028b69ed55f..7985cb19bc25 100644 --- a/shell/source/win32/shlxthandler/infotips/infotips.cxx +++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx @@ -115,7 +115,7 @@ std::wstring getFileTypeInfo(const std::string& file_extension) /** get file size. */ -DWORD getSizeOfFile( char* FileName ) +DWORD getSizeOfFile( char const * FileName ) { HANDLE hFile = CreateFile(StringToWString(FileName).c_str(), // open file GENERIC_READ, // open for reading @@ -178,7 +178,7 @@ std::wstring formatSizeOfFile( DWORD dwSize ) /** get file size information. */ -std::wstring getFileSizeInfo(char* FileName) +std::wstring getFileSizeInfo(char const * FileName) { DWORD dwSize=getSizeOfFile(FileName); if (dwSize != INVALID_FILE_SIZE) -- cgit