https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b0abd14b03f7c737148b9…
commit b0abd14b03f7c737148b96d96f9c25a15d192119
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Nov 9 15:59:55 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Mon Nov 16 16:58:10 2020 +0100
[ATL] Declare pointer as return type for functions returning pointers
---
sdk/lib/atl/atlpath.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sdk/lib/atl/atlpath.h b/sdk/lib/atl/atlpath.h
index 7f476d45239..942b47f638f 100644
--- a/sdk/lib/atl/atlpath.h
+++ b/sdk/lib/atl/atlpath.h
@@ -23,10 +23,10 @@ class CPathT
// const
inline BOOL PathFileExistsX(LPCSTR pszPath) { return PathFileExistsA(pszPath); }
inline BOOL PathFileExistsX(LPCWSTR pszPath) { return PathFileExistsW(pszPath); }
- inline int PathFindExtensionX(LPCSTR pszPath) { return PathFindExtensionA(pszPath);
}
- inline int PathFindExtensionX(LPCWSTR pszPath) { return PathFindExtensionW(pszPath);
}
- inline int PathFindFileNameX(LPCSTR pszPath) { return PathFindFileNameA(pszPath); }
- inline int PathFindFileNameX(LPCWSTR pszPath) { return PathFindFileNameW(pszPath); }
+ inline LPCSTR PathFindExtensionX(LPCSTR pszPath) { return
PathFindExtensionA(pszPath); }
+ inline LPCWSTR PathFindExtensionX(LPCWSTR pszPath) { return
PathFindExtensionW(pszPath); }
+ inline LPCSTR PathFindFileNameX(LPCSTR pszPath) { return PathFindFileNameA(pszPath);
}
+ inline LPCWSTR PathFindFileNameX(LPCWSTR pszPath) { return
PathFindFileNameW(pszPath); }
inline int PathGetDriveNumberX(LPCSTR pszPath) { return PathGetDriveNumberA(pszPath);
}
inline int PathGetDriveNumberX(LPCWSTR pszPath) { return
PathGetDriveNumberW(pszPath); }
inline BOOL PathIsDirectoryX(LPCSTR pszPath) { return PathIsDirectoryA(pszPath); }
@@ -49,8 +49,8 @@ class CPathT
inline BOOL PathIsUNCServerShareX(LPCWSTR pszPath) { return
PathIsUNCServerShareW(pszPath); }
inline BOOL PathMatchSpecX(LPCSTR pszPath, LPCSTR pszSpec) { return
PathMatchSpecA(pszPath, pszSpec); }
inline BOOL PathMatchSpecX(LPCWSTR pszPath, LPCWSTR pszSpec) { return
PathMatchSpecW(pszPath, pszSpec); }
- inline int PathSkipRootX(LPCSTR pszPath) { return PathSkipRootA(pszPath); }
- inline int PathSkipRootX(LPCWSTR pszPath) { return PathSkipRootW(pszPath); }
+ inline LPCSTR PathSkipRootX(LPCSTR pszPath) { return PathSkipRootA(pszPath); }
+ inline LPCWSTR PathSkipRootX(LPCWSTR pszPath) { return PathSkipRootW(pszPath); }
// non-const
inline void PathAddBackslashX(LPSTR pszPath) { PathAddBackslashA(pszPath); }