incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1181320 - /incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx
Date Tue, 11 Oct 2011 00:43:27 GMT
Author: pfg
Date: Tue Oct 11 00:43:26 2011
New Revision: 1181320

URL: http://svn.apache.org/viewvc?rev=1181320&view=rev
Log:
i114423 - sfx2: possible use of dangling reference

Modified:
    incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx

Modified: incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx?rev=1181320&r1=1181319&r2=1181320&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx (original)
+++ incubator/ooo/trunk/main/sfx2/source/dialog/dinfdlg.cxx Tue Oct 11 00:43:26 2011
@@ -163,7 +163,8 @@ String CreateSizeText( sal_uIntPtr nSize
 		fSize /= nGiga;
 		nDec = 3;
 	}
-	const LocaleDataWrapper& rLocaleWrapper = SvtSysLocale().GetLocaleData();
+    const SvtSysLocale aSysLocale;
+	const LocaleDataWrapper& rLocaleWrapper = aSysLocale.GetLocaleData();
 	String aSizeStr( rLocaleWrapper.getNum( nSize1, 0 ) );
 	aSizeStr += aUnitStr;
 	if ( bExtraBytes && ( nSize1 < nSize2 ) )



Mime
View raw message