Copy string metadata properly

This commit is contained in:
David Sansome 2010-08-28 13:52:29 +00:00
parent a066eb9968
commit f5cbeabb9b
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public:
operator wchar_t*() const { return get(); }
int characters() const { return chars_; }
int bytes() const { return chars_ * sizeof(wchar_t) + 1; }
int bytes() const { return (chars_ + 1) * sizeof(wchar_t); }
private:
Q_DISABLE_COPY(ScopedWCharArray);