[Libreoffice-commits] .: filter/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Jun 9 14:14:35 PDT 2011


 filter/source/svg/svgfilter.cxx                 |    2 +-
 filter/source/xsltfilter/LibXSLTTransformer.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit edd6f7a53ab2b469185d0bd8e7f17129c629b311
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Jun 9 23:14:20 2011 +0200

    Some cppcheck cleaning

diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index 12f6190..e05793d 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -79,7 +79,6 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
 {
     SolarMutexGuard aGuard;
     Window*     pFocusWindow = Application::GetFocusWindow();
-    sal_Int16 	nCurrentPageNumber = -1;
     sal_Bool    bRet;
 
     if( pFocusWindow )
@@ -90,6 +89,7 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
     else
     if( mxSrcDoc.is() )
     {
+        sal_Int16 	nCurrentPageNumber = -1;
         uno::Reference< frame::XDesktop > xDesktop( mxMSF->createInstance( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.frame.Desktop" )) ),
                                                     uno::UNO_QUERY);
         if( xDesktop.is() )
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx
index ec9e374..4c2d5f4 100644
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
@@ -310,7 +310,7 @@ namespace XSLT
         ::std::map<const char*, OString> pmap = m_transformer->getParameters();
         ::std::vector< const char* > params( pmap.size() * 2 + 1 ); // build parameters
         int paramIndex = 0;
-        for (pit = pmap.begin(); pit != pmap.end(); pit++)
+        for (pit = pmap.begin(); pit != pmap.end(); ++pit)
             {
                 params[paramIndex++] = (*pit).first;
                 params[paramIndex++] = (*pit).second.getStr();


More information about the Libreoffice-commits mailing list