diff options
| author | 2007-02-28 16:27:12 +0000 | |
|---|---|---|
| committer | 2007-02-28 16:27:12 +0000 | |
| commit | 2f5fc762ecde1b4c97006aa4343ccf447297cbfc (patch) | |
| tree | 7288b13b904a6eea4d5ccaeab5dd9df33dca99f6 /src/modules/system/libkvisystem.cpp | |
| parent | small fix (diff) | |
| download | KVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.tar.gz KVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.tar.bz2 KVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.zip | |
more qt4 port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@387 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
| -rw-r--r-- | src/modules/system/libkvisystem.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp index 7f29e2c23..56e0bbd3c 100644 --- a/src/modules/system/libkvisystem.cpp +++ b/src/modules/system/libkvisystem.cpp @@ -27,7 +27,7 @@ #include "kvi_string.h" #include "kvi_locale.h" - +#include "kvi_qcstring.h" #include "kvi_app.h" #include "kvi_env.h" #include "kvi_osinfo.h" @@ -196,11 +196,11 @@ static bool system_kvs_fnc_getenv(KviKvsModuleFunctionCall *c) KVSM_PARAMETER("variable",KVS_PT_NONEMPTYSTRING,0,szVariable) KVSM_PARAMETERS_END(c) - QCString szVar = szVariable.local8Bit(); + KviQCString szVar = szVariable.local8Bit(); #ifdef COMPILE_ON_WINDOWS QString env = getenv(szVar.data()); QString def = __tr2qs("No environment variable found, please don't use the %% in the request"); - c->returnValue()->setString(env ? QString::fromLocal8Bit(env) : QString::fromLocal8Bit(def)); + c->returnValue()->setString(env.isEmpty() ? QString::fromLocal8Bit(env) : QString::fromLocal8Bit(def)); #else char * b = kvi_getenv(szVar.data()); c->returnValue()->setString(b ? QString::fromLocal8Bit(b) : QString::null); @@ -442,7 +442,7 @@ static bool system_kvs_fnc_dcop(KviKvsModuleFunctionCall *c) { bool bTestMode = false; - QCString szApp,szObj,szFun; + KviQCString szApp,szObj,szFun; QStringList parms; KVSM_PARAMETERS_BEGIN(c) @@ -624,8 +624,8 @@ static bool system_kvs_cmd_setenv(KviKvsModuleCommandCall * c) KVSM_PARAMETER("value",KVS_PT_STRING,KVS_PF_OPTIONAL,szValue) KVSM_PARAMETERS_END(c) - QCString szVar = szVariable.local8Bit(); - QCString szVal = szValue.local8Bit(); + KviQCString szVar = szVariable.local8Bit(); + KviQCString szVal = szValue.local8Bit(); if(szVal.isEmpty())kvi_unsetenv(szVar.data()); else |
