summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-27 15:11:25 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-27 15:30:59 +0200
commit6a12a9e941283fe32d7714d4aee694c397996c3a (patch)
tree2c83c288b5c4fa23ec60cc4aad99f0fd7988f9aa /basic
parent2272b7e876dade3359b9f1fd1ae8a24e391bb8e5 (diff)
tdf#120703 PVS: V530 The return value of function is required to be utilized
Change-Id: Ifc170a45e25b3fd5b7f561cc50afb6452bb359bd Reviewed-on: https://gerrit.libreoffice.org/62420 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/symtbl.cxx2
-rw-r--r--basic/source/sbx/sbxbase.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx
index 5963153e23d0..2002f3fce278 100644
--- a/basic/source/comp/symtbl.cxx
+++ b/basic/source/comp/symtbl.cxx
@@ -441,7 +441,7 @@ void SbiProcDef::Match( std::unique_ptr<SbiProcDef> pOld )
pIn = pOld->pIn;
std::unique_ptr<SbiSymDef> tmp(this);
std::swap(pIn->m_Data[nPos], tmp);
- tmp.release();
+ (void)tmp.release();
}
}
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index 8697e8bd9ef3..5b68b90e32ec 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -127,7 +127,7 @@ void SbxBase::RemoveFactory( SbxFactory const * pFac )
{
std::unique_ptr<SbxFactory> tmp(std::move(*it));
r.m_Factories.erase( it );
- tmp.release();
+ (void)tmp.release();
break;
}
}