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

List:       kde-bugs-dist
Subject:    Bug#1331: KLocale build fail with --disable-nls.
From:       Alex Hayward <xelah () ferret ! lmh ! ox ! ac ! uk>
Date:       1999-05-09 15:28:52
[Download RAW message or body]

Package: kdelibs
Version: CVS head, 99/5/9

klocale.cpp does not build properly when --disable-nls is passed to
configure. Some function prototypes changed and only the functions in the
part which is compiled when NLS is included were updated. Consequently,
with --disable-nls, some function definitions' signatures differ from
those in the header. Patch:

--- klocale.cpp.orig	Sun May  9 12:28:19 1999
+++ klocale.cpp	Sun May  9 12:31:52 1999
@@ -371,7 +371,7 @@
 
 #else /* ENABLE_NLS */
 
-KLocale::KLocale( const char * ) 
+KLocale::KLocale( QString ) 
 {
 }
 
@@ -391,7 +391,7 @@
 
 void KLocale::aliasLocale(const char *text, long int index)
 {
-    aliases.insert(index, text);
+    aliases.insert(index, new QString(text));
 }
 
 const QString KLocale::getLocale(const QString& ){
@@ -405,8 +405,8 @@
     return false;
 }
  
-QStrList KLocale::languageList()const{
-    return QStrList();
+QStringList KLocale::languageList()const{
+    return QStringList();
 }
 
 void KLocale::insertCatalogue( const QString& catalogue) {

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

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