mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
resize output string before filling it with data from QString::toStdWString()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
fc74f0e4cd
commit
0a09c277e0
1 changed files with 1 additions and 0 deletions
|
@ -883,6 +883,7 @@ inline QString QString::fromStdString(const std::string &s)
|
|||
inline QStdWString QString::toStdWString() const
|
||||
{
|
||||
QStdWString str;
|
||||
str.resize(length());
|
||||
str.resize(toWCharArray(&(*str.begin())));
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue