[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kcontrol/kfontinst/kio
From:       Craig Drummond <craig () kde ! org>
Date:       2005-04-22 20:23:33
Message-ID: 20050422202333.842C5496 () office ! kde ! org
[Download RAW message or body]

CVS commit by craig: 

Also replace ':' in filenames with '_' (fixes potential problems with X, where
faces for a ttc are used as :<face no>: <xlfd>)


  M +3 -3      KioFonts.cpp   1.60


--- kdebase/kcontrol/kfontinst/kio/KioFonts.cpp  #1.59:1.60
@@ -142,5 +142,5 @@ static QString removeMultipleExtension(c
 static QString modifyName(const QString &fname)
 {
-    static const char * constSymbols[]={ "-", " ", NULL };
+    static const char constSymbols[]={ '-', ' ', ':', 0 };
 
     QString rv(fname);
@@ -156,5 +156,5 @@ static QString modifyName(const QString 
 
     for(int s=0; constSymbols[s]; ++s)
-        rv=rv.replace(QString::fromLatin1(constSymbols[s]), QString::fromLatin1("_"));
+        rv=rv.replace(constSymbols[s], '_');
 
     return rv;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic