summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-05-10 16:52:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-05-10 16:52:51 +0300
commit194c1f7f232cf5692f091ce51c0fb9098cd75f0e (patch)
tree798828860ffb872f44bc34fc7b965112f8ccc8d9 /include/m_string.h
parent2e21c98da8ddec95194a1a65b3a9f04fe86dfaa1 (diff)
warning fix
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 20b19b02f1..677385899a 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -239,9 +239,14 @@ public:
void SetString(PCXSTR pszSrc, int nLength);
public:
- friend CMSimpleStringT operator+(const CMSimpleStringT& str1, const CMSimpleStringT& str2);
- friend CMSimpleStringT operator+(const CMSimpleStringT& str1, PCXSTR psz2);
- friend CMSimpleStringT operator+(PCXSTR psz1, const CMSimpleStringT& str2);
+ template <typename Basetype>
+ friend CMSimpleStringT<BaseType> operator+(const CMSimpleStringT<BaseType> &str1, const CMSimpleStringT<BaseType> &str2);
+
+ template <typename Basetype>
+ friend CMSimpleStringT<BaseType> operator+(const CMSimpleStringT<BaseType> &str1, PCXSTR psz2);
+
+ template <typename Basetype>
+ friend CMSimpleStringT<BaseType> operator+(PCXSTR psz1, const CMSimpleStringT<BaseType> &str2);
static void MIR_SYSCALL CopyChars(XCHAR* pchDest, const XCHAR* pchSrc, int nChars);
static void MIR_SYSCALL CopyChars(XCHAR* pchDest, size_t nDestLen, const XCHAR* pchSrc, int nChars);
@@ -452,6 +457,7 @@ public:
#ifdef _MSC_VER
return _vscprintf(pszFormat, args);
#else
+ return 0; // !!!!!!!!!!
#endif
}
@@ -460,6 +466,7 @@ public:
#ifdef _MSC_VER
return vsprintf_s(pszBuffer, nlength, pszFormat, args);
#else
+ return 0; // !!!!!!!!!!
#endif
}
@@ -579,7 +586,9 @@ public:
{
#ifdef _MSC_VER
return ::GetEnvironmentVariableA(pszVar, pszBuffer, dwSize);
- #endif // _MSC_VER
+ #else
+ return 0; // !!!!!!!!!!
+ #endif
}
static char* MirCopy(const char *pstrString, size_t size)
@@ -596,7 +605,9 @@ class ChTraitsCRT< wchar_t > : public ChTraitsBase< wchar_t >
{
#ifdef _MSC_VER
return ::GetEnvironmentVariableW(pszName, pszBuffer, nSize);
- #endif // _MSC_VER
+ #else
+ return 0; // !!!!!!!!!!
+ #endif
}
public: