diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-01-17 02:00:35 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-01-19 08:39:32 +0000 |
commit | bfe79b50bce44707cb2416e6ff6b7441491967bb (patch) | |
tree | bc439d804193c01baa2f78bdf794169e912bf749 /writerfilter | |
parent | fdo#39440 sw: reduce scope of local variables (diff) | |
download | core-bfe79b50bce44707cb2416e6ff6b7441491967bb.tar.gz core-bfe79b50bce44707cb2416e6ff6b7441491967bb.zip |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: If7ad3584b3124ed0b337836071af1a5bd0451d85
Reviewed-on: https://gerrit.libreoffice.org/13972
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index e97c133bde42..a77aba65975b 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2452,7 +2452,6 @@ void DomainMapper_Impl::ChainTextFrames() try { - bool bIsTxbxChained = false ; sal_Int32 nTxbxId1 = 0 ; //holds id for the shape in outer loop sal_Int32 nTxbxId2 = 0 ; //holds id for the shape in inner loop sal_Int32 nTxbxSeq1 = 0 ; //holds seq number for the shape in outer loop @@ -2465,7 +2464,7 @@ void DomainMapper_Impl::ChainTextFrames() for( std::vector<uno::Reference< drawing::XShape > >::iterator outer_itr = m_vTextFramesForChaining.begin(); outer_itr != m_vTextFramesForChaining.end(); ) { - bIsTxbxChained = false ; + bool bIsTxbxChained = false ; uno::Reference<text::XTextContent> xTextContent1(*outer_itr, uno::UNO_QUERY_THROW); uno::Reference<beans::XPropertySet> xPropertySet1(xTextContent1, uno::UNO_QUERY); uno::Sequence<beans::PropertyValue> aGrabBag1; |