summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-03 18:57:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-03 18:57:06 +0100
commit29012d14efab09ffd3a74a6695f80ee6882765b3 (patch)
treed97aadae472c09d66dd60d49111be720e2760556 /sc
parentd98355805e0c275ccdbdfb45f20592fa3621c4a5 (diff)
coverity#1372443 Unchecked return value
Change-Id: I44532e3bf77e8397e1dc08d766c43ecfc0b0a59f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh3.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index 4c2c4e537375..3d9408c80bdb 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -1024,17 +1024,17 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
{
OUString aName;
aDocument.CreateValidTabName( aName );
- GetDocFunc().InsertTable( aSourceRange.aStart.Tab(), aName, true, false );
+ (void)GetDocFunc().InsertTable( aSourceRange.aStart.Tab(), aName, true, false );
}
break;
case SC_CAT_INSERT_ROWS:
- GetDocFunc().InsertCells( aSourceRange, nullptr, INS_INSROWS_BEFORE, true, false );
+ (void)GetDocFunc().InsertCells( aSourceRange, nullptr, INS_INSROWS_BEFORE, true, false );
break;
case SC_CAT_INSERT_COLS:
- GetDocFunc().InsertCells( aSourceRange, nullptr, INS_INSCOLS_BEFORE, true, false );
+ (void)GetDocFunc().InsertCells( aSourceRange, nullptr, INS_INSCOLS_BEFORE, true, false );
break;
case SC_CAT_DELETE_TABS :
- GetDocFunc().DeleteTable( aSourceRange.aStart.Tab(), true, false );
+ (void)GetDocFunc().DeleteTable( aSourceRange.aStart.Tab(), true, false );
break;
case SC_CAT_DELETE_ROWS:
{
@@ -1042,7 +1042,7 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
if ( pDel->IsTopDelete() )
{
aSourceRange = pDel->GetOverAllRange().MakeRange();
- GetDocFunc().DeleteCells( aSourceRange, nullptr, DEL_DELROWS, false );
+ (void)GetDocFunc().DeleteCells( aSourceRange, nullptr, DEL_DELROWS, false );
// #i101099# [Collaboration] Changes are not correctly shown
if ( bShared )
@@ -1062,7 +1062,7 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
if ( pDel->IsTopDelete() && !pDel->IsTabDeleteCol() )
{ // deleted Table enthaelt deleted Cols, die nicht
aSourceRange = pDel->GetOverAllRange().MakeRange();
- GetDocFunc().DeleteCells( aSourceRange, nullptr, DEL_DELCOLS, false );
+ (void)GetDocFunc().DeleteCells( aSourceRange, nullptr, DEL_DELCOLS, false );
}
}
break;
@@ -1070,7 +1070,7 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
{
const ScChangeActionMove* pMove = static_cast<const ScChangeActionMove*>(pSourceAction);
ScRange aFromRange( pMove->GetFromRange().MakeRange() );
- GetDocFunc().MoveBlock( aFromRange,
+ (void)GetDocFunc().MoveBlock( aFromRange,
aSourceRange.aStart, true, true, false, false );
}
break;