diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-30 15:47:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-30 15:47:54 +0100 |
commit | 820dff991b119b2cafb5efe5f1a4668351705457 (patch) | |
tree | 7408a0e3941cbff5ae6dd3ff8ddedf2bf2ef11f3 /vcl/source/window/errinf.cxx | |
parent | a15d8458c67a769dd59e6237e012d6ec69331582 (diff) |
coverity#1405737 (golden) Logically dead code
regression since
commit 46a153cbcac1a3e2881b83b5537037321c34797c
Author: Chris Sherlock <chris.sherlock79@gmail.com>
Date: Sun Apr 23 18:53:58 2017 +1000
vcl: update error codes to defined constants for code clarity
Change-Id: I6e86c45b71fc15d6645501128e7d86f8e179e652
Reviewed-on: https://gerrit.libreoffice.org/36851
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Change-Id: Id1a3f26a84c7641b0b6af71dc842a683d0c1dd0c
Diffstat (limited to 'vcl/source/window/errinf.cxx')
-rw-r--r-- | vcl/source/window/errinf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/errinf.cxx b/vcl/source/window/errinf.cxx index 7080cb013c04..06b004b6e2fd 100644 --- a/vcl/source/window/errinf.cxx +++ b/vcl/source/window/errinf.cxx @@ -114,7 +114,7 @@ bool ErrorHandler::GetErrorString(sal_uInt32 nErrCodeId, OUString& rErrStr) DialogMask ErrorHandler::HandleError(sal_uInt32 nErrCodeId, DialogMask nFlags) { - if(nErrCodeId != ERRCODE_NONE || nErrCodeId == ERRCODE_ABORT) + if (nErrCodeId == ERRCODE_NONE || nErrCodeId == ERRCODE_ABORT) return DialogMask::NONE; ErrorRegistry &rData = TheErrorRegistry::get(); |