loplugin:constparams: shell (clang-cl)
Change-Id: I7ffe60d53f4c4b7690efc8bec9d29a4959740d9a
This commit is contained in:
parent
3c665f5dab
commit
b2d56c8b58
@ -41,7 +41,7 @@ namespace /* private */
|
|||||||
|
|
||||||
size_t ColumnInfoTableSize = SAL_N_ELEMENTS(ColumnInfoTable);
|
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++)
|
for (size_t i = 0; i < OOFileExtensionTableSize; i++)
|
||||||
{
|
{
|
||||||
|
@ -115,7 +115,7 @@ std::wstring getFileTypeInfo(const std::string& file_extension)
|
|||||||
|
|
||||||
/** get file size.
|
/** get file size.
|
||||||
*/
|
*/
|
||||||
DWORD getSizeOfFile( char* FileName )
|
DWORD getSizeOfFile( char const * FileName )
|
||||||
{
|
{
|
||||||
HANDLE hFile = CreateFile(StringToWString(FileName).c_str(), // open file
|
HANDLE hFile = CreateFile(StringToWString(FileName).c_str(), // open file
|
||||||
GENERIC_READ, // open for reading
|
GENERIC_READ, // open for reading
|
||||||
@ -178,7 +178,7 @@ std::wstring formatSizeOfFile( DWORD dwSize )
|
|||||||
|
|
||||||
/** get file size information.
|
/** get file size information.
|
||||||
*/
|
*/
|
||||||
std::wstring getFileSizeInfo(char* FileName)
|
std::wstring getFileSizeInfo(char const * FileName)
|
||||||
{
|
{
|
||||||
DWORD dwSize=getSizeOfFile(FileName);
|
DWORD dwSize=getSizeOfFile(FileName);
|
||||||
if (dwSize != INVALID_FILE_SIZE)
|
if (dwSize != INVALID_FILE_SIZE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user