You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pa...@apache.org on 2012/09/28 09:50:54 UTC

svn commit: r1391354 - /incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx

Author: paveljanik
Date: Fri Sep 28 07:50:53 2012
New Revision: 1391354

URL: http://svn.apache.org/viewvc?rev=1391354&view=rev
Log:
Simplify the code and prevent compiler warning at the same time.

Modified:
    incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx

Modified: incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx?rev=1391354&r1=1391353&r2=1391354&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/filter/xml/xmlitem.cxx Fri Sep 28 07:50:53 2012
@@ -62,10 +62,8 @@ SvXMLImportContext *SvXMLItemSetContext:
 		return CreateChildContext( nPrefix, rLocalName, xAttrList,
 								   rItemSet, *pEntry, rUnitConv );
 	}
-	else
-	{
-		return new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
-	}
+
+	return new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
 }
 
 /** This method is called from this instance implementation of