forked from qt-creator/qt-creator
Do not use the fromAscii() and toAscii() functions.
They are deprecated in Qt 5. Use fromLatin1() and toLatin1() instead. In Qt 5, these always do the same thing as their "Ascii" counterparts. The same goes for Qt 4, provided QTextCodec::setCodecForCStrings has not been set, which it hasn't. Change-Id: I04edeb376762b6671eff8156094f0d5e2cb8e1ea Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -144,7 +144,7 @@ static inline const VcsBase::VcsBaseEditorParameters *findType(int ie)
|
||||
|
||||
static inline QString debugCodec(const QTextCodec *c)
|
||||
{
|
||||
return c ? QString::fromAscii(c->name()) : QString::fromAscii("Null codec");
|
||||
return c ? QString::fromLatin1(c->name()) : QString::fromLatin1("Null codec");
|
||||
}
|
||||
|
||||
// Parse "svn status" output for added/modified/deleted files
|
||||
|
Reference in New Issue
Block a user