[Libreoffice-commits] core.git: sw/source

Michael Stahl mstahl at redhat.com
Thu Feb 21 12:14:19 PST 2013


 sw/source/core/edit/autofmt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e052f55236e2cdd4ebe6a126b570415b5a1b4ea5
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Feb 21 21:11:54 2013 +0100

    spurious warning C4701: potentially uninitialized local variable
    
    Change-Id: I37f96df0ca6003bd811f156448e6b4990d2222aa

diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 5f58eb0..99edb81 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -1110,7 +1110,7 @@ void SwAutoFormat::DeleteAktPara( bool bStart, bool bEnd )
         // Loesche Blanks am Ende vom akt. und am Anfang vom naechsten
         aDelPam.DeleteMark();
         aDelPam.GetPoint()->nNode = aNdIdx;
-        xub_StrLen nPos;
+        xub_StrLen nPos(0);
         if( bStart && 0 != ( nPos = GetLeadingBlanks( pAktTxtNd->GetTxt() )))
         {
             aDelPam.GetPoint()->nContent.Assign( pAktTxtNd, 0 );


More information about the Libreoffice-commits mailing list