[Libreoffice-commits] core.git: vcl/source
Tor Lillqvist
tml at iki.fi
Wed Apr 3 22:15:07 PDT 2013
vcl/source/gdi/outdev3.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5551702b8dc3e9d06510ea7d12e6a25f35468a93
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Apr 4 08:13:44 2013 +0300
WaE: variable is uninitialized when used within its own initialization
Presumably aStr is intended here, not aTmpStr itself.
Change-Id: I9a887c33f89d519c17ee0156ba9cea55b465fe97
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 353a3be..0413cc0 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -6688,7 +6688,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
}
else if ( nStyle & TEXT_DRAW_ENDELLIPSIS )
{
- OUString aTmpStr = aStr.replaceAt( nIndex, aTmpStr.getLength()-nIndex, "" );
+ OUString aTmpStr = aStr.replaceAt( nIndex, aStr.getLength()-nIndex, "" );
if ( nIndex > 1 )
{
More information about the Libreoffice-commits
mailing list