[Libreoffice-commits] core.git: vcl/source

Julien Nabet serval2412 at yahoo.fr
Fri Mar 29 02:52:25 PDT 2013


 vcl/source/filter/FilterConfigCache.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 60f567e87feca99971d32d5fd7b221b65fe97479
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Mar 29 10:50:04 2013 +0100

    Fix wrong copy paste iterator (import instead of export)
    
    Change-Id: I669c9bf6a121dbcbeb6a4d28cfc8e7295ace1593

diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index 4f39afb..b0a8bcf 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -453,7 +453,7 @@ String FilterConfigCache::GetExportFilterName( sal_uInt16 nFormat )
 sal_uInt16 FilterConfigCache::GetExportFormatNumber( const String& rFormatName )
 {
     CacheVector::const_iterator aIter, aEnd;
-    for (aIter = aImport.begin(), aEnd = aImport.end(); aIter != aEnd; ++aIter)
+    for (aIter = aExport.begin(), aEnd = aExport.end(); aIter != aEnd; ++aIter)
     {
         if ( aIter->sUIName.equalsIgnoreAsciiCase( rFormatName ) )
             break;
@@ -464,7 +464,7 @@ sal_uInt16 FilterConfigCache::GetExportFormatNumber( const String& rFormatName )
 sal_uInt16 FilterConfigCache::GetExportFormatNumberForMediaType( const String& rMediaType )
 {
     CacheVector::const_iterator aIter, aEnd;
-    for (aIter = aImport.begin(), aEnd = aImport.end(); aIter != aEnd; ++aIter)
+    for (aIter = aExport.begin(), aEnd = aExport.end(); aIter != aEnd; ++aIter)
     {
         if ( aIter->sMediaType.equalsIgnoreAsciiCase( rMediaType ) )
             break;
@@ -476,7 +476,7 @@ sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName( const String& r
 {
     CacheVector::const_iterator aEnd;
     CacheVector::iterator aIter;
-    for (aIter = aImport.begin(), aEnd = aImport.end(); aIter != aEnd; ++aIter)
+    for (aIter = aExport.begin(), aEnd = aExport.end(); aIter != aEnd; ++aIter)
     {
         if ( aIter->GetShortName().EqualsIgnoreCaseAscii( rShortName ) )
             break;
@@ -487,7 +487,7 @@ sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName( const String& r
 sal_uInt16 FilterConfigCache::GetExportFormatNumberForTypeName( const String& rType )
 {
     CacheVector::const_iterator aIter, aEnd;
-    for (aIter = aImport.begin(), aEnd = aImport.end(); aIter != aEnd; ++aIter)
+    for (aIter = aExport.begin(), aEnd = aExport.end(); aIter != aEnd; ++aIter)
     {
         if ( aIter->sType.equalsIgnoreAsciiCase( rType ) )
             break;


More information about the Libreoffice-commits mailing list