summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.cpp16
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.h8
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.cpp b/plugins/SendScreenshotPlus/src/Utils.cpp
index 5c4cdc8162..2b7e028dbd 100644
--- a/plugins/SendScreenshotPlus/src/Utils.cpp
+++ b/plugins/SendScreenshotPlus/src/Utils.cpp
@@ -349,31 +349,31 @@ TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, TCHAR* pszFilename, TCHAR
}
//---------------------------------------------------------------------------
-TCHAR* GetFileNameW(TCHAR* pszPath) {
- TCHAR* slash=_tcsrchr(pszPath,_T('\\'));
+TCHAR* GetFileNameW(const TCHAR* pszPath) {
+ const TCHAR* slash=_tcsrchr(pszPath,_T('\\'));
if(!slash) slash=_tcsrchr(pszPath,_T('/'));
if(slash)
return mir_t2u(slash+1);
else
return mir_t2u(pszPath);
}
-TCHAR* GetFileExtW(TCHAR* pszPath) {
- TCHAR* slash=_tcsrchr(pszPath,_T('.'));
+TCHAR* GetFileExtW(const TCHAR* pszPath) {
+ const TCHAR* slash=_tcsrchr(pszPath,_T('.'));
if(slash)
return mir_t2u(slash);
return NULL;
}
-char* GetFileNameA(TCHAR* pszPath) {
- TCHAR* slash=_tcsrchr(pszPath,_T('\\'));
+char* GetFileNameA(const TCHAR* pszPath) {
+ const TCHAR* slash=_tcsrchr(pszPath,_T('\\'));
if(!slash) slash=_tcsrchr(pszPath,_T('/'));
if(slash)
return mir_t2a(slash+1);
else
return mir_t2a(pszPath);
}
-char* GetFileExtA(TCHAR* pszPath) {
- TCHAR* slash=_tcsrchr(pszPath,_T('.'));
+char* GetFileExtA(const TCHAR* pszPath) {
+ const TCHAR* slash=_tcsrchr(pszPath,_T('.'));
if(slash)
return mir_t2a(slash);
return NULL;
diff --git a/plugins/SendScreenshotPlus/src/Utils.h b/plugins/SendScreenshotPlus/src/Utils.h
index 9fed8a737d..2eab116f54 100644
--- a/plugins/SendScreenshotPlus/src/Utils.h
+++ b/plugins/SendScreenshotPlus/src/Utils.h
@@ -55,10 +55,10 @@ FIBITMAP* CaptureScreen(HDC hDC, SIZE size, HWND hCapture=0);
//FIBITMAP* CaptureDesktop(); /*emulate print screen (not used)*/
TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, TCHAR* pszFilename, TCHAR* pszExt, int flag=0);
-TCHAR* GetFileNameW(TCHAR* pszPath);
-TCHAR* GetFileExtW (TCHAR* pszPath);
-char* GetFileNameA(TCHAR* pszPath);
-char* GetFileExtA (TCHAR* pszPath);
+TCHAR* GetFileNameW(const TCHAR* pszPath);
+TCHAR* GetFileExtW (const TCHAR* pszPath);
+char* GetFileNameA(const TCHAR* pszPath);
+char* GetFileExtA (const TCHAR* pszPath);
#ifdef _UNICODE
# define GetFileName GetFileNameW
# define GetFileExt GetFileExtW