Skip to content

Commit

Permalink
Fixed compilation issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jan 3, 2015
1 parent 34b00c4 commit d75455e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qtools/qstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11963,7 +11963,7 @@ QChar* QString::asciiToUnicode( const QByteArray& ba, uint* len )
int l = 0;
while ( l < (int)ba.size() && ba[l] )
l++;
char* str = ba.data();
const char* str = ba.data();
QChar *uc = new QChar[ l ]; // Can't use macro, since function is public
QChar *result = uc;
if ( len )
Expand All @@ -11982,7 +11982,7 @@ static QChar* internalAsciiToUnicode( const QByteArray& ba, uint* len )
int l = 0;
while ( l < (int)ba.size() && ba[l] )
l++;
char* str = ba.data();
const char* str = ba.data();
QChar *uc = QT_ALLOC_QCHAR_VEC( l );
QChar *result = uc;
if ( len )
Expand Down Expand Up @@ -15257,7 +15257,7 @@ QCString qt_winQString2MB( const QString& s, int uclen )
QCString mb(bufSize);
int len;
while ( !(len=WideCharToMultiByte(CP_ACP, 0, (const WCHAR*)s.unicode(), uclen,
mb.data(), bufSize-1, 0, &used_def)) )
mb.rawData(), bufSize-1, 0, &used_def)) )
{
int r = GetLastError();
if ( r == ERROR_INSUFFICIENT_BUFFER ) {
Expand Down

0 comments on commit d75455e

Please sign in to comment.