summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-09-21 15:11:57 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-09-23 07:29:33 +0000
commit92c8d74c543aa94cd512369072975dca7006d5b3 (patch)
treeeb7fe0edfa601a3062f3756274b26502021cdf69 /connectivity
parent3e27df1035677c7cca5200858d5d8e8283bf7aa9 (diff)
CppCheck : reduce variables scope
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72 Reviewed-on: https://gerrit.libreoffice.org/18753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx
index 6e3dbeaea7b0..0423a2c3bd14 100644
--- a/connectivity/source/drivers/macab/MacabRecords.cxx
+++ b/connectivity/source/drivers/macab/MacabRecords.cxx
@@ -381,7 +381,6 @@ MacabHeader *MacabRecords::createHeaderForRecordType(const CFArrayRef _records,
/* While searching through the properties for required properties, these
* sal_Bools will keep track of what we have found.
*/
- bool bFoundProperty;
bool bFoundRequiredProperties[numRequiredProperties];
@@ -411,8 +410,8 @@ MacabHeader *MacabRecords::createHeaderForRecordType(const CFArrayRef _records,
/* Determine the non-required properties... */
for(i = 0; i < numProperties; i++)
{
+ bool bFoundProperty = false;
property = static_cast<CFStringRef>(CFArrayGetValueAtIndex(allProperties, i));
- bFoundProperty = false;
for(j = 0; j < numRequiredProperties; j++)
{
if(CFEqual(property, requiredProperties[j]))