diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-16 17:35:52 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-17 07:31:17 +0000 |
commit | afb5143639598bdc7f78ba000569d80e10d0fbe4 (patch) | |
tree | bdcb00001e370eac8eaae92b3ac873dc69c42263 /forms/source/component/Grid.cxx | |
parent | fdo#39468: translate german comments (diff) | |
download | core-afb5143639598bdc7f78ba000569d80e10d0fbe4.tar.gz core-afb5143639598bdc7f78ba000569d80e10d0fbe4.zip |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I1d037e87c69b1a7de019f1abf1f729bf7e28d762
Reviewed-on: https://gerrit.libreoffice.org/13494
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms/source/component/Grid.cxx')
-rw-r--r-- | forms/source/component/Grid.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index bb5469bbcd9a..a3e727b21caf 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -780,11 +780,10 @@ void OGridControlModel::write(const Reference<XObjectOutputStream>& _rxOutStream // 2. Columns sal_Int32 nLen = getCount(); _rxOutStream->writeLong(nLen); - OGridColumn* pCol; for (sal_Int32 i = 0; i < nLen; i++) { // first the service name for the unerlying model - pCol = getColumnImplementation(m_aItems[i]); + OGridColumn* pCol = getColumnImplementation(m_aItems[i]); DBG_ASSERT(pCol != NULL, "OGridControlModel::write : such items should never reach it into my container !"); _rxOutStream << pCol->getModelName(); // then the object itself |