diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 15:01:26 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:43 +0200 |
commit | b24adf82ce21ac91851a73c84680447a16feb53b (patch) | |
tree | 6dbc957473dffee02c7e9cf1bbb222ddde987540 /forms/source | |
parent | 5f6977735dbf9504fb4dbb885b8b3e4728b33f60 (diff) |
cppcheck scope reduction in forms/...DatabaseForm.cxx
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index ebe736192158..f61fde297a9f 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -2483,7 +2483,6 @@ void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlM // TabIndex in der Reihenfolge der Sequence setzen const Reference<XControlModel>* pControls = rControls.getConstArray(); - sal_Int16 nTabIndex = 1; sal_Int32 nCount = getCount(); sal_Int32 nNewCount = rControls.getLength(); @@ -2491,6 +2490,7 @@ void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlM if (nNewCount <= nCount) { Any aElement; + sal_Int16 nTabIndex = 1; for (sal_Int32 i=0; i < nNewCount; ++i, ++pControls) { Reference<XFormComponent> xComp(*pControls, UNO_QUERY); |