summaryrefslogtreecommitdiffstats
path: root/src/electronics/port.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commite47aaa9b34ffc363d268aca989aab28fdfaf9821 (patch)
tree369b56d21949c574d30f71bdf24bf1e04f5e1877 /src/electronics/port.cpp
parente05894553004a47b1e2f276bedcf5963b57a3932 (diff)
downloadktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.tar.gz
ktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/electronics/port.cpp')
-rw-r--r--src/electronics/port.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/electronics/port.cpp b/src/electronics/port.cpp
index cb7f4fb..ec74bfc 100644
--- a/src/electronics/port.cpp
+++ b/src/electronics/port.cpp
@@ -99,24 +99,24 @@ bool SerialPort::pinState( Pin pin )
if ( m_file == -1 )
return false;
- int tqmask = 0;
+ int mask = 0;
switch ( pin )
{
case CD:
- tqmask = TIOCM_CD;
+ mask = TIOCM_CD;
break;
case RD:
- tqmask = TIOCM_SR;
+ mask = TIOCM_SR;
break;
case CTS:
- tqmask = TIOCM_CTS;
+ mask = TIOCM_CTS;
break;
case RI:
- tqmask = TIOCM_RI;
+ mask = TIOCM_RI;
break;
case TD:
@@ -127,7 +127,7 @@ bool SerialPort::pinState( Pin pin )
break;
}
- if ( tqmask == 0 )
+ if ( mask == 0 )
{
kdError() << k_funcinfo << "Bad pin " << pin << endl;
return false;
@@ -140,7 +140,7 @@ bool SerialPort::pinState( Pin pin )
return false;
}
- return bits & tqmask;
+ return bits & mask;
}