summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 15:32:06 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:46 +0100
commit1c0172cca4f1e90679321912e20436a7f42f122d (patch)
tree77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /include/m_string.h
parentdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff)
more nullptr
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/m_string.h b/include/m_string.h
index c7dee400e0..1077298bcb 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -626,13 +626,13 @@ public:
static int __stdcall GetBaseTypeLength(LPCSTR pszSrc)
{
// Returns required buffer size in wchar_ts
- return ::MultiByteToWideChar(CP_ACP, 0, pszSrc, -1, NULL, 0)-1;
+ return ::MultiByteToWideChar(CP_ACP, 0, pszSrc, -1, nullptr, 0)-1;
}
static int __stdcall GetBaseTypeLength(LPCSTR pszSrc, int nLength)
{
// Returns required buffer size in wchar_ts
- return ::MultiByteToWideChar(CP_ACP, 0, pszSrc, nLength, NULL, 0);
+ return ::MultiByteToWideChar(CP_ACP, 0, pszSrc, nLength, nullptr, 0);
}
static int __stdcall GetBaseTypeLength(LPCWSTR pszSrc)
@@ -677,13 +677,13 @@ public:
static int __stdcall SafeStringLen(LPCSTR psz)
{
// returns length in bytes
- return (psz != NULL) ? (int)strlen(psz) : 0;
+ return (psz != nullptr) ? (int)strlen(psz) : 0;
}
static int __stdcall SafeStringLen(LPCWSTR psz)
{
// returns length in wchar_ts
- return (psz != NULL) ? (int)wcslen(psz) : 0;
+ return (psz != nullptr) ? (int)wcslen(psz) : 0;
}
static int __stdcall GetCharLen(const wchar_t* pch)