From 32d60b8e9492f6bbaaa00cc36632a8d195c9a1a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Apr 2018 20:23:56 +0300 Subject: warning fixes --- include/m_string.inl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/m_string.inl b/include/m_string.inl index 97b94040b9..d31236e512 100644 --- a/include/m_string.inl +++ b/include/m_string.inl @@ -218,7 +218,7 @@ void CMSimpleStringT::UnlockBuffer() } template -void CMSimpleStringT::ReleaseBuffer(int nNewLength = -1) +void CMSimpleStringT::ReleaseBuffer(int nNewLength) { if (nNewLength == -1) { int nAlloc = GetData()->nAllocLength; @@ -503,7 +503,7 @@ CMStringT::CMStringT(const unsigned char* pszSrc) : } template< typename BaseType, class StringTraits > -CMStringT::CMStringT(char ch, int nLength = 1) : +CMStringT::CMStringT(char ch, int nLength) : CThisSimpleString() { if (nLength > 0) { @@ -514,7 +514,7 @@ CMStringT::CMStringT(char ch, int nLength = 1) : } template< typename BaseType, class StringTraits > -CMStringT::CMStringT(wchar_t ch, int nLength = 1) : +CMStringT::CMStringT(wchar_t ch, int nLength) : CThisSimpleString() { if (nLength > 0) { @@ -698,7 +698,7 @@ int CMStringT::CollateNoCase(PCXSTR psz) const // Delete 'nCount' characters, starting at index 'iIndex' template< typename BaseType, class StringTraits > -int CMStringT::Delete(int iIndex, int nCount = 1) +int CMStringT::Delete(int iIndex, int nCount) { if (iIndex < 0) iIndex = 0; @@ -946,7 +946,7 @@ CMStringT CMStringT::Tokenize(PC // Find the first occurrence of character 'ch', starting at index 'iStart' template< typename BaseType, class StringTraits > -int CMStringT::Find(XCHAR ch, int iStart = 0) const +int CMStringT::Find(XCHAR ch, int iStart) const { // nLength is in XCHARs int nLength = this->GetLength(); @@ -964,7 +964,7 @@ int CMStringT::Find(XCHAR ch, int iStart = 0) const // Find the first occurrence of string 'pszSub', starting at index 'iStart' template< typename BaseType, class StringTraits > -int CMStringT::Find(PCXSTR pszSub, int iStart = 0) const +int CMStringT::Find(PCXSTR pszSub, int iStart) const { // iStart is in XCHARs if (pszSub == nullptr) -- cgit v1.2.3