summaryrefslogtreecommitdiff
authorar <ar>2004-04-07 11:23:41 (UTC)
committer ar <ar>2004-04-07 11:23:41 (UTC)
commit0e2322d2bc926036d62153346bb03776df1ca987 (patch) (side-by-side diff)
tree217ce66605d7b68252662942dc98524a7f2d872f
parent6095b1f70bcac407208e7473598f2bbf53339810 (diff)
downloadopie-0e2322d2bc926036d62153346bb03776df1ca987.zip
opie-0e2322d2bc926036d62153346bb03776df1ca987.tar.gz
opie-0e2322d2bc926036d62153346bb03776df1ca987.tar.bz2
fix compile problem with gcc3.3.3
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/networksettings2/netnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp
index 417fba8..dc66aff 100644
--- a/noncore/settings/networksettings2/networksettings2/netnode.cpp
+++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp
@@ -1,48 +1,48 @@
#include <qpe/qpeapplication.h>
#include <time.h>
#include <qtextstream.h>
#include <qpixmap.h>
#include "resources.h"
#include "netnode.h"
#include "asdevice.h"
#include "asline.h"
#include "asconnection.h"
#include "asfullsetup.h"
QString & deQuote( QString & X ) {
if( X[0] == '"' ) {
// remove end and trailing "" and \x -> x
QChar R;
long idx;
idx = X.length()-1;
X = X.mid( 1, idx );
idx = 0;
while( ( idx = X.find( '\\', idx ) ) >= 0 ) {
- R = X[idx+1];
+ R = X.at( idx + 1 );
X.replace( idx, 2, &R, 1 );
}
X = X.left( X.length()-1 );
}
return X;
}
QString quote( QString X ) {
if( X.find( QRegExp( "[ \n\"\\\t]" ) ) >= 0 ) {
// need to quote this
QString OutString = "\"";
X.replace( QRegExp("\""), "\\\"" );
X.replace( QRegExp("\\"), "\\\\" );
X.replace( QRegExp(" "), "\\ " );
OutString += X;
OutString += "\"";
X = OutString;
}
return X;
}