[Libreoffice-commits] .: sd/source

David Tardon dtardon at kemper.freedesktop.org
Mon Oct 11 02:55:27 PDT 2010


 sd/source/ui/annotations/annotationmanager.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 82ca51ecbe6c588dc79b4f45ebf333c263e3e484
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Oct 11 11:42:51 2010 +0200

    prevent possible use of a ref. to deleted LocaleDataWrapper

diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index ab2abe9..971ae06 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -164,7 +164,8 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
     OUString sRet;
     if( xAnnotation.is() )
     {
-        const LocaleDataWrapper& rLocalData = SvtSysLocale().GetLocaleData();
+        const SvtSysLocale aSysLocale;
+        const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
 
         com::sun::star::util::DateTime aDateTime( xAnnotation->getDateTime() );
                 


More information about the Libreoffice-commits mailing list