There are lots of temporary OUStrings for if-else constructs in the source code. This is an example: if (itr->first == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(STR_GLOBAL_RANGE_NAME))) this should better be: if (itr->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(STR_GLOBAL_RANGE_NAME))) More from this is seen in this commit: http://cgit.freedesktop.org/libreoffice/core/commit/?id=dcd7dc43376c914027b76525959a9cea71d9279e To get an overview where such constructs are used: ./g grep ' == OUString(' ./g grep ' == rtl::OUString(' ./g grep ' == ::rtl::OUString(' And maybe much more (think about OUString(..) == ...). Goal would be to replace all of these occurence with equalsAsciiL.
I've fixed this in one file. Once it gets pushed (case it does) i'll continue with the remaining files
This EasyHack has become obsolete due to new overloaded operators like "==" for OUStrings. See RTL_CONSTASCII_STRINGPARAM removal.
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillCpp) [NinjaEdit]