summaryrefslogtreecommitdiffstats
path: root/noatun/modules/infrared/lirc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/infrared/lirc.cpp')
-rw-r--r--noatun/modules/infrared/lirc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noatun/modules/infrared/lirc.cpp b/noatun/modules/infrared/lirc.cpp
index 363849c1..731bb5c1 100644
--- a/noatun/modules/infrared/lirc.cpp
+++ b/noatun/modules/infrared/lirc.cpp
@@ -12,8 +12,8 @@
#include "lirc.h"
-Lirc::Lirc(TQObject *parent)
- : TQObject(parent),
+Lirc::Lirc(TQObject *tqparent)
+ : TQObject(tqparent),
m_socket(0)
{
int sock = ::socket(PF_UNIX, SOCK_STREAM, 0);
@@ -124,7 +124,7 @@ void Lirc::slotRead()
{
// <code> <repeat> <button name> <remote control name>
line.remove(0, 17); // strip code
- int pos = line.find(' ');
+ int pos = line.tqfind(' ');
if (pos < 0)
return;
bool ok;
@@ -133,7 +133,7 @@ void Lirc::slotRead()
return;
line.remove(0, pos + 1);
- pos = line.find(' ');
+ pos = line.tqfind(' ');
if (pos < 0)
return;
TQString btn = line.left(pos);
@@ -153,11 +153,11 @@ void Lirc::update()
const TQString Lirc::readLine()
{
if (!m_socket->bytesAvailable())
- return TQString::null;
+ return TQString();
TQString line = m_socket->readLine();
if (line.isEmpty())
- return TQString::null;
+ return TQString();
line.remove(line.length() - 1, 1);
return line;