On Wed, Oct 24, 2012 at 6:41 PM, Stephan Bergmann <sbergman@redhat.com> wrote:
Devilishly, it should actually happen to work just fine, as tools String and
rtl::OUString are layout-compatible.
humm... pretty scary... wonder how many other bug are accidentally hidden ?
But the fix would simply be switching the implementation of
SbiRuntime::StepPAD (and possibly more) to properly use the SbxVarialbe's
OUString, and nothing more, or what am I missing?  So I fail to see how that
relates to getting rid of xub_StrLen.
One issue is that String already enforce the 64K limit (despite
internally using a int32 for the len), whereas OUString, obviously
does not... should we bother enforcing that limit ? including
maintaining a distinction between 'variable-len' (Basic) String and
'fixed-len' String (which is not going to be trivial since they are
represented by the same kind of object)
while on the topic of magic c++ trick:
does
OUString* a = get_some_OUString_pointer()
*a = a->copy(0,5);
leak or not ?
Norbert
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.