summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosrch.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-01 23:40:19 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-01 23:40:19 +0100
commite15a9e2fb666b9c6e6de5a0bb9a16c858b4d486c (patch)
treefcd75110024342817d8bebd94060430a1b6ffa6f /sw/source/core/unocore/unosrch.cxx
parent24b3817c71afee19e4759d2a4e7edf8b940f927f (diff)
Cppcheck Reduce scope of variables
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r--sw/source/core/unocore/unosrch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index 5b07eebd5ac3..ded8f5ca3592 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -527,9 +527,9 @@ uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( b
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
sal_Bool bSet = sal_False;
- sal_Int16 nSet = 0;
if(pEntry)
{
+ sal_Int16 nSet = 0;
switch(pEntry->nWID)
{
case WID_SEARCH_ALL : bSet = bAll; goto SET_BOOL;