summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-05-28 11:24:31 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-05-28 17:47:01 +0200
commitad097e4cac307c6f0eac27e38afe9cdc250ec697 (patch)
tree1fa09fe7b4e253fe0d369513ea5bc8498ab31f65 /vcl/source
parent2e0444d31694324806ff2457de3472d871c10939 (diff)
cppcheck: duplicateExpression
> Same expression on both sides of '|' we don't need WB_CLOSEABLE in the mask if we add it anyway ever since commit a0e2cc39e2c9d1284ef17180b6ab659a1dd2c540 Date: Tue Aug 7 10:54:21 2001 +0000 #77230# - Close() works now correct Change-Id: I13d0f2ee8d12a9ab35080a1db09d398c7ac2cdb9 Reviewed-on: https://gerrit.libreoffice.org/38103 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/dialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 080e9ace55fb..91525b3f590c 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -415,7 +415,7 @@ void Dialog::ImplInit( vcl::Window* pParent, WinBits nStyle, InitFlag eFlag )
{
mpWindowImpl->mbFrame = true;
mpWindowImpl->mbOverlapWin = true;
- SystemWindow::ImplInit( pParent, (nStyle & (WB_MOVEABLE | WB_SIZEABLE | WB_ROLLABLE | WB_CLOSEABLE | WB_STANDALONE)) | WB_CLOSEABLE, nullptr );
+ SystemWindow::ImplInit( pParent, (nStyle & (WB_MOVEABLE | WB_SIZEABLE | WB_ROLLABLE | WB_STANDALONE)) | WB_CLOSEABLE, nullptr );
// Now set all style bits
mpWindowImpl->mnStyle = nStyle;
}