summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/textsh2.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 12:14:44 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 14:25:32 +0200
commitb9f27c0529207c0f78e27e2ae67da3c7cae72e01 (patch)
tree53d45092e847bcb497eaceb881b7abc354fbc746 /sw/source/uibase/shells/textsh2.cxx
parent62391d51788eb5a9b72b26e25cbb42fa21b0c091 (diff)
sal_uInt16: avoid temporaries, simplify, constify, use USHRT_MAX
Change-Id: Ibfa44aa10d08ac1b19b7d34790f76effc9de0c9c
Diffstat (limited to 'sw/source/uibase/shells/textsh2.cxx')
-rw-r--r--sw/source/uibase/shells/textsh2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh2.cxx b/sw/source/uibase/shells/textsh2.cxx
index d3576190433d..fce194f2d7e2 100644
--- a/sw/source/uibase/shells/textsh2.cxx
+++ b/sw/source/uibase/shells/textsh2.cxx
@@ -87,7 +87,6 @@ void SwTextShell::ExecDB(SfxRequest &rReq)
{
const SfxItemSet *pArgs = rReq.GetArgs();
SwDBManager* pDBManager = GetShell().GetDBManager();
- sal_uInt16 nSlot = rReq.GetSlot();
OUString sSourceArg, sCommandArg;
sal_Int32 nCommandTypeArg = 0;
@@ -139,7 +138,7 @@ void SwTextShell::ExecDB(SfxRequest &rReq)
if ( pCursorItem )
((const SfxUsrAnyItem*)pCursorItem)->GetValue() >>= xCursor;
- switch (nSlot)
+ switch (rReq.GetSlot())
{
case FN_QRY_INSERT:
{