summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/services/kopete_unix_serial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/sms/services/kopete_unix_serial.cpp')
-rw-r--r--kopete/protocols/sms/services/kopete_unix_serial.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kopete/protocols/sms/services/kopete_unix_serial.cpp b/kopete/protocols/sms/services/kopete_unix_serial.cpp
index c40f831b..e8650de0 100644
--- a/kopete/protocols/sms/services/kopete_unix_serial.cpp
+++ b/kopete/protocols/sms/services/kopete_unix_serial.cpp
@@ -280,13 +280,13 @@ KopeteUnixSerialPort::KopeteUnixSerialPort(string device, speed_t lineSpeed,
// for the first call getLine() waits only 3 seconds
// because of _timeoutVal = 3
string s = getLine();
- if (s.find("OK") != string::npos ||
- s.find("CABLE: GSM") != string::npos)
+ if (s.tqfind("OK") != string::npos ||
+ s.tqfind("CABLE: GSM") != string::npos)
{
foundOK = true;
readTries = 0; // found OK, exit loop
}
- else if (s.find("ERROR") != string::npos)
+ else if (s.tqfind("ERROR") != string::npos)
readTries = 0; // error, exit loop
}
@@ -301,8 +301,8 @@ KopeteUnixSerialPort::KopeteUnixSerialPort(string device, speed_t lineSpeed,
while (readTries-- > 0)
{
string s = getLine();
- if (s.find("OK") != string::npos ||
- s.find("CABLE: GSM") != string::npos)
+ if (s.tqfind("OK") != string::npos ||
+ s.tqfind("CABLE: GSM") != string::npos)
{
_readNotifier = new TQSocketNotifier(_fd, TQSocketNotifier::Read);
connect( _readNotifier, TQT_SIGNAL(activated(int)), this, TQT_SIGNAL(activated()));