diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 20:47:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-09 10:33:59 +0100 |
commit | cc0e9a37de8bceeb224b03a5bb1827b087e3e7b5 (patch) | |
tree | 8d24abeda6b70096c7f96107b681a81fe6378418 /xmlhelp | |
parent | 0eb52534de536fbe33585c91f4f173653b184e24 (diff) |
cppcheck: variableScope
Change-Id: If0c56c89e2722d47a401363f3854331229856490
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 1954335ec783..a13067b012b1 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -707,7 +707,6 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_FileURL ); if( osl::Directory::E_None == aDirectory.open() ) { - int idx_ = 0; OUString aFileUrl, aFileName; while( aDirectory.getNextItem( aDirItem ) == osl::FileBase::E_None && aDirItem.getFileStatus( aFileStatus ) == osl::FileBase::E_None && @@ -716,7 +715,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) { aFileUrl = aFileStatus.getFileURL(); aFileName = aFileStatus.getFileName(); - idx_ = aFileName.lastIndexOf( '.' ); + int idx_ = aFileName.lastIndexOf( '.' ); if( idx_ == -1 ) continue; |