Copy string metadata properly
This commit is contained in:
parent
a066eb9968
commit
f5cbeabb9b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue