1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Couple of minor fixes.

This commit is contained in:
Julian Storer 2010-02-24 09:11:04 +00:00
parent 8d05a9f2fa
commit bb60371f1c
5 changed files with 18 additions and 2 deletions

View file

@ -2158,6 +2158,11 @@ const char* String::toCString() const
}
}
#ifdef _MSC_VER
#pragma warning (disable: 4514 4996)
#pragma warning (push)
#endif
int String::getNumBytesAsCString() const throw()
{
return (int) wcstombs (0, text->text, 0);
@ -2173,6 +2178,10 @@ int String::copyToCString (char* destBuffer, const int maxBufferSizeBytes) const
return numBytes;
}
#ifdef _MSC_VER
#pragma warning (pop)
#endif
//==============================================================================
void String::copyToUnicode (juce_wchar* const destBuffer, const int maxCharsToCopy) const throw()
{