summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-18 09:32:31 +0000
committerjan iversen <jani@documentfoundation.org>2016-04-19 06:19:39 +0000
commit4740a1a553b1d69b1e381e3961085744244af26f (patch)
tree53daf2ed5446c1fd56a51b37631f7e4327302c69 /sd
parentcf56b5d44fdc989f5ed2f5121bb43f452317fae4 (diff)
cppcheck: silence known condition warning in sd
Change-Id: I918eb21eef5696295ed1b9eb86e04121651245f8 Reviewed-on: https://gerrit.libreoffice.org/24206 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuconstr.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sd/source/ui/func/fuconstr.cxx b/sd/source/ui/func/fuconstr.cxx
index cc433a3b370f..8719f79e5218 100644
--- a/sd/source/ui/func/fuconstr.cxx
+++ b/sd/source/ui/func/fuconstr.cxx
@@ -219,16 +219,11 @@ bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt)
/**
* Process keyboard input
- * @returns sal_True if a KeyEvent is being processed, sal_False otherwise
+ * @returns true if a KeyEvent is being processed, false otherwise
*/
bool FuConstruct::KeyInput(const KeyEvent& rKEvt)
{
- bool bReturn = false;
-
- if ( !bReturn )
- bReturn = FuDraw::KeyInput(rKEvt);
-
- return bReturn;
+ return FuDraw::KeyInput(rKEvt);;
}
void FuConstruct::Activate()