[Libreoffice-commits] core.git: 2 commits - sc/source unoxml/source

Caolán McNamara caolanm at redhat.com
Fri Sep 2 10:07:04 UTC 2016


 sc/source/ui/unoobj/cellsuno.cxx |    8 ++++----
 unoxml/source/xpath/xpathapi.cxx |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 8ac2bdfd797f9aad21c866fa5ca224bf82356c1f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 2 09:54:26 2016 +0100

    coverity#704000 silence Unchecked return value
    
    Change-Id: Ie4a00562377a346df2edcd62468372a1091802a1

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index a234b54..d4f2318 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -7215,7 +7215,7 @@ void SAL_CALL ScTableSheetObj::insertCells( const table::CellRangeAddress& rRang
             OSL_ENSURE( rRangeAddress.Sheet == GetTab_Impl(), "falsche Tabelle in CellRangeAddress" );
             ScRange aScRange;
             ScUnoConversion::FillScRange( aScRange, rRangeAddress );
-            pDocSh->GetDocFunc().InsertCells( aScRange, nullptr, eCmd, true, true );
+            (void)pDocSh->GetDocFunc().InsertCells( aScRange, nullptr, eCmd, true, true );
         }
     }
 }
@@ -7246,7 +7246,7 @@ void SAL_CALL ScTableSheetObj::removeRange( const table::CellRangeAddress& rRang
             OSL_ENSURE( rRangeAddress.Sheet == GetTab_Impl(), "falsche Tabelle in CellRangeAddress" );
             ScRange aScRange;
             ScUnoConversion::FillScRange( aScRange, rRangeAddress );
-            pDocSh->GetDocFunc().DeleteCells( aScRange, nullptr, eCmd, true );
+            (void)pDocSh->GetDocFunc().DeleteCells( aScRange, nullptr, eCmd, true );
         }
     }
 }
@@ -7263,7 +7263,7 @@ void SAL_CALL ScTableSheetObj::moveRange( const table::CellAddress& aDestination
         ScRange aSourceRange;
         ScUnoConversion::FillScRange( aSourceRange, aSource );
         ScAddress aDestPos( (SCCOL)aDestination.Column, (SCROW)aDestination.Row, aDestination.Sheet );
-        pDocSh->GetDocFunc().MoveBlock( aSourceRange, aDestPos, true, true, true, true );
+        (void)pDocSh->GetDocFunc().MoveBlock( aSourceRange, aDestPos, true, true, true, true );
     }
 }
 
@@ -7279,7 +7279,7 @@ void SAL_CALL ScTableSheetObj::copyRange( const table::CellAddress& aDestination
         ScRange aSourceRange;
         ScUnoConversion::FillScRange( aSourceRange, aSource );
         ScAddress aDestPos( (SCCOL)aDestination.Column, (SCROW)aDestination.Row, aDestination.Sheet );
-        pDocSh->GetDocFunc().MoveBlock( aSourceRange, aDestPos, false, true, true, true );
+        (void)pDocSh->GetDocFunc().MoveBlock( aSourceRange, aDestPos, false, true, true, true );
     }
 }
 
commit e753cd98a02c00d0bf55a7ae8e83a65367f39595
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 2 09:45:02 2016 +0100

    coverity#1027278 silence Unchecked return value
    
    Change-Id: I3f2aa0393876a146ed291ad9e10575312516527f

diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index cd3b915..3456232 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -132,7 +132,7 @@ namespace XPath
             ouri    = OUStringToOString(i->second, RTL_TEXTENCODING_UTF8);
             xmlChar const *p = reinterpret_cast<xmlChar const *>(oprefix.getStr());
             xmlChar const *u = reinterpret_cast<xmlChar const *>(ouri.getStr());
-            xmlXPathRegisterNs(ctx, p, u);
+            (void)xmlXPathRegisterNs(ctx, p, u);
             ++i;
         }
     }


More information about the Libreoffice-commits mailing list