diff options
Diffstat (limited to 'languages/ruby')
-rw-r--r-- | languages/ruby/debugger/stty.cpp | 8 | ||||
-rw-r--r-- | languages/ruby/rubysupport_part.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp index 0fcd2a17..bebf3fbe 100644 --- a/languages/ruby/debugger/stty.cpp +++ b/languages/ruby/debugger/stty.cpp @@ -155,7 +155,7 @@ STTY::~STTY() int STTY::findTTY() { int ptyfd = -1; - bool needGrantPty = TRUE; + bool needGrantPty = true; // Find a master pty that we can open //////////////////////////////// @@ -168,7 +168,7 @@ int STTY::findTTY() strncpy(tty_slave, ptsname(ptyfd), 50); grantpt(ptyfd); unlockpt(ptyfd); - needGrantPty = FALSE; + needGrantPty = false; #endif // first we try UNIX PTY's @@ -182,7 +182,7 @@ int STTY::findTTY() struct stat sbuf; sprintf(tty_slave,"/dev/pts/%d",ptyno); if (stat(tty_slave,&sbuf) == 0 && S_ISCHR(sbuf.st_mode)) - needGrantPty = FALSE; + needGrantPty = false; else { close(ptyfd); ptyfd = -1; @@ -227,7 +227,7 @@ int STTY::findTTY() } if (ptyfd >= 0) { - if (needGrantPty && !chownpty(ptyfd, TRUE)) { + if (needGrantPty && !chownpty(ptyfd, true)) { fprintf(stderr,"tdevelop: chownpty failed for device %s::%s.\n",pty_master,tty_slave); fprintf(stderr," : This means the session can be eavesdroped.\n"); fprintf(stderr," : Make sure konsole_grantpty is installed and setuid root.\n"); diff --git a/languages/ruby/rubysupport_part.cpp b/languages/ruby/rubysupport_part.cpp index 79cbac07..2f920df6 100644 --- a/languages/ruby/rubysupport_part.cpp +++ b/languages/ruby/rubysupport_part.cpp @@ -518,7 +518,7 @@ void RubySupportPart::parse(const TQString &fileName) void RubySupportPart::slotRun () { // if we can't save all parts, then the user canceled - if ( partController()->saveAllFiles() == false ) + if ( !partController()->saveAllFiles() ) return; TQFileInfo program(mainProgram()); if (mainProgram().endsWith("script/server")) { @@ -875,7 +875,7 @@ void RubySupportPart::slotSwitchToView() void RubySupportPart::slotRunTestUnderCursor() { // if we can't save all parts, then the user canceled - if ( partController()->saveAllFiles() == false ) + if ( !partController()->saveAllFiles() ) return; KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(partController()->activePart()); |