Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Mon, 2016-06-13 at 10:31 +0200, Eike Rathke wrote:
Hi Winfried,

On Monday, 2016-06-13 10:18:02 +0200, Winfried Donkers wrote:

(aRefStr and aStr being svl::SharedString)
Apparently this doesn't work, getDataIgnoreCase() does not return a string, but 0x0.
gdb tells me that aRefStr.mpData is filled correctly, but aRefStr.mpDataIgnoreCase is 0x0.
aStr is filled correctly.

Likely aRefStr isn't interned, but only constructed from an OUString.

Yup, and what I used to do in a case like this was to insert a printf
statement in that constructor of SharedString (the one that only takes
OUString) to see if anybody is calling it.  If somebody is calling it,
set a break point there and you'll find the culprit.

One likely scenario is where someone is passing a OUString value to a
function that expects a SharedString.

Kohei



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.