summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations/annotationmanager.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-10-11 11:42:51 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-11 11:42:51 +0200
commit9f2302a41d47ab17f250230cdb9b5941d495d0fe (patch)
tree7abc02e2b70f83f19df53d1067bd8e09b39cca27 /sd/source/ui/annotations/annotationmanager.cxx
parent78e905fd109d44f07489896a5ae96ee0bf4e9eb7 (diff)
prevent possible use of a ref. to deleted LocaleDataWrapper
Diffstat (limited to 'sd/source/ui/annotations/annotationmanager.cxx')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 9c8d056b353c..ad6006ddaeb4 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() );