diff options
| author | 2008-11-01 13:29:24 +0000 | |
|---|---|---|
| committer | 2008-11-01 13:29:24 +0000 | |
| commit | 29f4d5bed8ce6fde9581bc5747076664ec76aecf (patch) | |
| tree | e35228c12fdfe4133cf04ce2b45ad8059627e6fd /src/kvilib/system | |
| parent | moved KVS translation away from kvirc; (diff) | |
| download | KVIrc-29f4d5bed8ce6fde9581bc5747076664ec76aecf.tar.gz KVIrc-29f4d5bed8ce6fde9581bc5747076664ec76aecf.tar.bz2 KVIrc-29f4d5bed8ce6fde9581bc5747076664ec76aecf.zip | |
fixed a lot of noisy message with recent g++ versions; removed kvidoublebuffer (useless since all qt4 paint routines are already double-buffered)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2803 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/kvilib/system')
| -rw-r--r-- | src/kvilib/system/kvi_env.cpp | 14 | ||||
| -rw-r--r-- | src/kvilib/system/kvi_locale.cpp | 6 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/kvilib/system/kvi_env.cpp b/src/kvilib/system/kvi_env.cpp index 86e359c67..48f706daf 100644 --- a/src/kvilib/system/kvi_env.cpp +++ b/src/kvilib/system/kvi_env.cpp @@ -31,12 +31,14 @@ #if !defined(COMPILE_ON_WINDOWS) && ! defined(COMPILE_ON_MINGW) +#ifdef HAVE_SETENV bool kvi_setenv(const char * name,const char * value) { -#ifdef HAVE_SETENV return (setenv(name,value,1) == 0); #else #ifdef HAVE_PUTENV +bool kvi_setenv(const char * name,const char * value) +{ int iLen1 = kvi_strLen(name); int iLen2 = kvi_strLen(value); char * buf = (char *)kvi_malloc(iLen1 + iLen2 + 2); @@ -52,18 +54,22 @@ bool kvi_setenv(const char * name,const char * value) } return true; #else +bool kvi_setenv(const char *,const char *) +{ // no setenv , no putenv.. what the hell of system is this ? return false; #endif #endif } +#ifdef HAVE_UNSETENV void kvi_unsetenv(const char * name) { -#ifdef HAVE_UNSETENV unsetenv(name); #else #ifdef HAVE_PUTENV +void kvi_unsetenv(const char * name) +{ int iLen1 = kvi_strLen(name); char * buf = (char *)kvi_malloc(iLen1 + 1); kvi_memmove(buf,name,iLen1); @@ -81,6 +87,10 @@ void kvi_unsetenv(const char * name) kvi_free(buf); } // else this system sux } + #else +void kvi_unsetenv(const char *) +{ + // no setenv , no putenv.. what the hell of system is this ? #endif #endif } diff --git a/src/kvilib/system/kvi_locale.cpp b/src/kvilib/system/kvi_locale.cpp index 69eed9fe4..19e0e3ff5 100644 --- a/src/kvilib/system/kvi_locale.cpp +++ b/src/kvilib/system/kvi_locale.cpp @@ -335,9 +335,11 @@ static KviPointerHashTable<const char *,KviSmartTextCodec> * g_pSmartCodecDict #include <stdio.h> +/* #if HAVE_LIMITS_H || _LIBC #include <limits.h> #endif +*/ // The magic number of the GNU message catalog format. #define KVI_LOCALE_MAGIC 0x950412de @@ -998,7 +1000,7 @@ namespace KviLocale } }; -KviTranslator::KviTranslator(QObject * par,const char * nam) +KviTranslator::KviTranslator(QObject * par,const char *) : QTranslator(par) { } @@ -1007,7 +1009,7 @@ KviTranslator::~KviTranslator() { } -QString KviTranslator::translate(const char *context,const char * message,const char * comment) const +QString KviTranslator::translate(const char *,const char * message,const char *) const { // we ignore contexts and comments for qt translations return g_pMainCatalogue->translateToQString(message); |
