svl::SharedString::getDataIgnoreCase() returns unexpected result

Winfried Donkers W.Donkers at dci-electronics.nl
Tue Jun 14 06:00:40 UTC 2016


Hi Kohei,

> > 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.

That is the case indeed, I found the culprit late yesterday.
Thanks for your suggestion. I use a lot of SAL_DEBUG for traces as it is often much faster than gdb, but this time gdb provide the clue for me.

Winfried


More information about the LibreOffice mailing list