diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:10:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:14:40 +0200 |
commit | b2d56c8b588f418ced180562edef6c83a641c3fc (patch) | |
tree | 83967f3a5abc72706a56fbe1ecc47e8a2a29c0e2 | |
parent | 3c665f5dabbcf4fd8b42b5f97d653147a435d4d3 (diff) |
loplugin:constparams: shell (clang-cl)
Change-Id: I7ffe60d53f4c4b7690efc8bec9d29a4959740d9a
-rw-r--r-- | shell/source/win32/shlxthandler/columninfo/columninfo.cxx | 2 | ||||
-rw-r--r-- | 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) |