summaryrefslogtreecommitdiff
path: root/vcl/source/window/dlgctrl.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-17 19:50:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-17 19:54:17 +0100
commitc66ec11c41c9519e2f9462ae7fe2b54927f6bc77 (patch)
treed0d9bf0326c416d5a4f5156cd5ab930ac37fb03b /vcl/source/window/dlgctrl.cxx
parentb3652dae4b4d3f02fc0c02d9e139391ef43d7ba5 (diff)
coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
Diffstat (limited to 'vcl/source/window/dlgctrl.cxx')
-rw-r--r--vcl/source/window/dlgctrl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 15078a0bda17..19d68a08fe06 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -1167,10 +1167,9 @@ static Window* ImplGetLabelFor( Window* pFrameWindow, WindowType nMyType, Window
// #i100833# MT 2010/02: Group box and fixed lines can also lable a fixed text.
// See tools/options/print for example.
sal_Bool bThisIsAGroupControl = (nMyType == WINDOW_GROUPBOX) || (nMyType == WINDOW_FIXEDLINE);
- Window* pSWindow = NULL;
// get index, form start and form end
sal_uInt16 nIndex=0, nFormStart=0, nFormEnd=0;
- pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow,
+ Window* pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow,
pLabel,
nIndex,
nFormStart,