summaryrefslogtreecommitdiffstats
path: root/languages/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp')
-rw-r--r--languages/cpp/addattributedialog.h2
-rw-r--r--languages/cpp/addmethoddialog.h2
-rw-r--r--languages/cpp/app_templates/cppcurseshello/main.cpp2
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.cpp2
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.h2
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.cpp2
-rw-r--r--languages/cpp/app_templates/kpartapp/app.cpp2
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.cpp10
-rw-r--r--languages/cpp/app_templates/kscons_tdemdi/app_part.cpp10
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.cpp4
-rw-r--r--languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp2
-rw-r--r--languages/cpp/app_templates/wxhello/app.cpp6
-rw-r--r--languages/cpp/codeinformationrepository.cpp2
-rw-r--r--languages/cpp/configproblemreporter.ui.h2
-rw-r--r--languages/cpp/cppcodecompletion.cpp8
-rw-r--r--languages/cpp/createpcsdialog.h2
-rw-r--r--languages/cpp/debugger/stty.cpp8
-rw-r--r--languages/cpp/problemreporter.cpp2
-rw-r--r--languages/cpp/subclassingdlg.cpp2
-rw-r--r--languages/cpp/subclassingdlg.h4
20 files changed, 38 insertions, 38 deletions
diff --git a/languages/cpp/addattributedialog.h b/languages/cpp/addattributedialog.h
index 1d1e61fd..81782fd7 100644
--- a/languages/cpp/addattributedialog.h
+++ b/languages/cpp/addattributedialog.h
@@ -32,7 +32,7 @@ class AddAttributeDialog : public AddAttributeDialogBase
public:
AddAttributeDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~AddAttributeDialog();
virtual void addAttribute();
diff --git a/languages/cpp/addmethoddialog.h b/languages/cpp/addmethoddialog.h
index 0362eae1..20275400 100644
--- a/languages/cpp/addmethoddialog.h
+++ b/languages/cpp/addmethoddialog.h
@@ -32,7 +32,7 @@ class AddMethodDialog : public AddMethodDialogBase
public:
AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~AddMethodDialog();
virtual void addMethod();
diff --git a/languages/cpp/app_templates/cppcurseshello/main.cpp b/languages/cpp/app_templates/cppcurseshello/main.cpp
index 3e23a5df..7d900513 100644
--- a/languages/cpp/app_templates/cppcurseshello/main.cpp
+++ b/languages/cpp/app_templates/cppcurseshello/main.cpp
@@ -25,7 +25,7 @@ int main()
initscr();
start_color();
cbreak();
- keypad(stdscr, TRUE);
+ keypad(stdscr, true);
noecho();
init_pair(1, COLOR_BLACK, COLOR_CYAN);
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.cpp b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
index a1196404..428c2bc3 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
@@ -16,7 +16,7 @@
bool %{APPNAME}Part::initDoc( InitDocFlags flags, TQWidget* parentWidget )
{
// If nothing is loaded, do initialize here
- return TRUE;
+ return true;
}
KoView* %{APPNAME}Part::createViewInstance( TQWidget* parent, const char* name )
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.h b/languages/cpp/app_templates/kofficepart/kopart_part.h
index 57b57cb6..a8ffdd5e 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.h
@@ -15,7 +15,7 @@ class %{APPNAME}Part : public KoDocument
public:
%{APPNAME}Part( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
- virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
+ virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = false, double zoomX = 1.0, double zoomY = 1.0 );
virtual bool initDoc( InitDocFlags flags, TQWidget* parentWidget = 0 );
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.cpp b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
index 2cf5ff06..fed33236 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
@@ -32,7 +32,7 @@ void %{APPNAME}View::paintEvent( TQPaintEvent* ev )
/// @todo Scaling
// Let the document do the drawing
- koDocument()->paintEverything( painter, ev->rect(), FALSE, this );
+ koDocument()->paintEverything( painter, ev->rect(), false, this );
painter.end();
}
diff --git a/languages/cpp/app_templates/kpartapp/app.cpp b/languages/cpp/app_templates/kpartapp/app.cpp
index f963714e..24f12236 100644
--- a/languages/cpp/app_templates/kpartapp/app.cpp
+++ b/languages/cpp/app_templates/kpartapp/app.cpp
@@ -185,7 +185,7 @@ void %{APPNAME}::fileOpen()
KURL url =
KFileDialog::getOpenURL( TQString(), TQString(), this );
- if (url.isEmpty() == false)
+ if (!url.isEmpty())
{
// About this function, the style guide (
// http://developer.kde.org/documentation/standards/kde/style/basics/index.html )
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp
index f4f866b1..21681fcd 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.cpp
+++ b/languages/cpp/app_templates/kpartapp/app_part.cpp
@@ -82,7 +82,7 @@ bool %{APPNAME}Part::openFile()
{
// m_file is always local so we can use TQFile on it
TQFile file(m_file);
- if (file.open(IO_ReadOnly) == false)
+ if (!file.open(IO_ReadOnly))
return false;
// our example widget is text-based, so we use TQTextStream instead
@@ -106,12 +106,12 @@ bool %{APPNAME}Part::openFile()
bool %{APPNAME}Part::saveFile()
{
// if we aren't read-write, return immediately
- if (isReadWrite() == false)
+ if (!isReadWrite())
return false;
// m_file is always local, so we use TQFile
TQFile file(m_file);
- if (file.open(IO_WriteOnly) == false)
+ if (!file.open(IO_WriteOnly))
return false;
// use TQTextStream to dump the text to the file
@@ -130,7 +130,7 @@ void %{APPNAME}Part::fileOpen()
// button is clicked
TQString file_name = KFileDialog::getOpenFileName();
- if (file_name.isEmpty() == false)
+ if (!file_name.isEmpty())
openURL(file_name);
}
@@ -138,7 +138,7 @@ void %{APPNAME}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
TQString file_name = KFileDialog::getSaveFileName();
- if (file_name.isEmpty() == false)
+ if (!file_name.isEmpty())
saveAs(file_name);
}
diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp
index daa8b078..4c12b424 100644
--- a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp
+++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp
@@ -96,7 +96,7 @@ bool %{APPNAMELC}Part::openFile()
{
// m_file is always local so we can use TQFile on it
TQFile file(m_file);
- if (file.open(IO_ReadOnly) == false)
+ if (!file.open(IO_ReadOnly))
return false;
// our example widget is text-based, so we use TQTextStream instead
@@ -120,12 +120,12 @@ bool %{APPNAMELC}Part::openFile()
bool %{APPNAMELC}Part::saveFile()
{
// if we aren't read-write, return immediately
- if (isReadWrite() == false)
+ if (!isReadWrite())
return false;
// m_file is always local, so we use TQFile
TQFile file(m_file);
- if (file.open(IO_WriteOnly) == false)
+ if (!file.open(IO_WriteOnly))
return false;
// use TQTextStream to dump the text to the file
@@ -144,7 +144,7 @@ void %{APPNAMELC}Part::fileOpen()
// button is clicked
TQString file_name = KFileDialog::getOpenFileName();
- if (file_name.isEmpty() == false)
+ if (!file_name.isEmpty())
openURL(file_name);
}
@@ -152,7 +152,7 @@ void %{APPNAMELC}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
TQString file_name = KFileDialog::getSaveFileName();
- if (file_name.isEmpty() == false)
+ if (!file_name.isEmpty())
saveAs(file_name);
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
index 8ce81310..a3b82a79 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
@@ -157,7 +157,7 @@ void %{APPNAME}::load( const TQString &fileName )
TQTextStream ts( &f );
e->setText( ts.read() );
- e->setModified( FALSE );
+ e->setModified( false );
setCaption( fileName );
statusBar()->message( tr("Loaded document %1").arg(fileName), 2000 );
}
@@ -182,7 +182,7 @@ void %{APPNAME}::save()
t << text;
f.close();
- e->setModified( FALSE );
+ e->setModified( false );
setCaption( filename );
diff --git a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp
index 168cd8c4..869dfe96 100644
--- a/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp
+++ b/languages/cpp/app_templates/tdescreensaver/tdescreensaver.cpp
@@ -34,7 +34,7 @@ extern "C"
//-----------------------------------------------------------------------------
//! dialog to setup screen saver parameters
%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name )
- : %{APPNAME}UI( parent, name, TRUE )
+ : %{APPNAME}UI( parent, name, true )
{
/// @todo
//Connect your signals and slots here to configure the screen saver.
diff --git a/languages/cpp/app_templates/wxhello/app.cpp b/languages/cpp/app_templates/wxhello/app.cpp
index 6bcb3d47..1c761616 100644
--- a/languages/cpp/app_templates/wxhello/app.cpp
+++ b/languages/cpp/app_templates/wxhello/app.cpp
@@ -14,9 +14,9 @@ bool
{
%{APPNAME}Frame *frame = new %{APPNAME}Frame( wxT( "Hello World" ), wxPoint(50,50), wxSize(450,340) );
- frame->Show(TRUE);
+ frame->Show(true);
SetTopWindow(frame);
- return TRUE;
+ return true;
}
%{APPNAME}Frame::%{APPNAME}Frame( const wxString& title, const wxPoint& pos, const wxSize& size )
@@ -40,7 +40,7 @@ bool
void
%{APPNAME}Frame::OnQuit( wxCommandEvent& WXUNUSED( event ) )
{
- Close(TRUE);
+ Close(true);
}
void
diff --git a/languages/cpp/codeinformationrepository.cpp b/languages/cpp/codeinformationrepository.cpp
index a1ad79b0..4c9dbd6e 100644
--- a/languages/cpp/codeinformationrepository.cpp
+++ b/languages/cpp/codeinformationrepository.cpp
@@ -32,7 +32,7 @@ my_unique( const TQValueList<KTextEditor::CompletionEntry>& entryList )
e.postfix + " ";
if ( map.find( key ) == map.end() )
{
- map[ key ] = TRUE;
+ map[ key ] = true;
l << e;
}
}
diff --git a/languages/cpp/configproblemreporter.ui.h b/languages/cpp/configproblemreporter.ui.h
index f65db442..bcf805e5 100644
--- a/languages/cpp/configproblemreporter.ui.h
+++ b/languages/cpp/configproblemreporter.ui.h
@@ -83,7 +83,7 @@ void ConfigureProblemReporter::accept()
void ConfigureProblemReporter::bgParserCheckbox_toggled( bool b )
{
delaySlider->setEnabled( b );
- if ( b == TRUE )
+ if ( b )
delayLabel->show();
else
delayLabel->hide();
diff --git a/languages/cpp/cppcodecompletion.cpp b/languages/cpp/cppcodecompletion.cpp
index d09602c0..56cd0b50 100644
--- a/languages/cpp/cppcodecompletion.cpp
+++ b/languages/cpp/cppcodecompletion.cpp
@@ -256,7 +256,7 @@ static TQValueList<ItemType> unique( const TQValueList<ItemType>& entryList ) {
e.text + " " +
e.postfix + " " ).simplifyWhiteSpace().stripWhiteSpace();
if ( map.find( key ) == map.end() ) {
- map[ key ] = TRUE;
+ map[ key ] = true;
l << e;
}
}
@@ -271,7 +271,7 @@ static TQStringList unique( const TQStringList& entryList ) {
while ( it != entryList.end() ) {
TQString e = *it++;
if ( map.find( e ) == map.end() ) {
- map[ e ] = TRUE;
+ map[ e ] = true;
l << e;
}
}
@@ -287,7 +287,7 @@ static TQStringList unique( const TQValueList<TQStringList>& entryList ) {
TQStringList li = ( *it++ );
TQString e = li.join( "\n" );
if ( map.find( e ) == map.end() ) {
- map[ e ] = TRUE;
+ map[ e ] = true;
l += li;
}
}
@@ -2419,7 +2419,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
- showArguments = TRUE;
+ showArguments = true;
}
EvaluationResult type;
diff --git a/languages/cpp/createpcsdialog.h b/languages/cpp/createpcsdialog.h
index 9aab172b..df303173 100644
--- a/languages/cpp/createpcsdialog.h
+++ b/languages/cpp/createpcsdialog.h
@@ -24,7 +24,7 @@ class CreatePCSDialog : public CreatePCSDialogBase
public:
- CreatePCSDialog( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ CreatePCSDialog( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~CreatePCSDialog();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp
index 517430da..c4b3023b 100644
--- a/languages/cpp/debugger/stty.cpp
+++ b/languages/cpp/debugger/stty.cpp
@@ -150,7 +150,7 @@ STTY::~STTY()
int STTY::findTTY()
{
int ptyfd = -1;
- bool needGrantPty = TRUE;
+ bool needGrantPty = true;
// Find a master pty that we can open ////////////////////////////////
@@ -163,7 +163,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
@@ -177,7 +177,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;
@@ -222,7 +222,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/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp
index 34a7fd9e..cb33ed94 100644
--- a/languages/cpp/problemreporter.cpp
+++ b/languages/cpp/problemreporter.cpp
@@ -223,7 +223,7 @@ void ProblemReporter::InitListView(TDEListView* listview)
listview->addColumn( i18n("Line") );
listview->addColumn( i18n("Column") );
listview->addColumn( i18n("Problem") );
- listview->setAllColumnsShowFocus( TRUE );
+ listview->setAllColumnsShowFocus( true );
connect( listview, TQ_SIGNAL(executed(TQListViewItem*)),
this, TQ_SLOT(slotSelected(TQListViewItem*)) );
diff --git a/languages/cpp/subclassingdlg.cpp b/languages/cpp/subclassingdlg.cpp
index 96ec6385..c670e95d 100644
--- a/languages/cpp/subclassingdlg.cpp
+++ b/languages/cpp/subclassingdlg.cpp
@@ -313,7 +313,7 @@ bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
replace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
if (canBeModal)
{
- replace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
+ replace(buffer,"$CAN_BE_MODAL_H$",", bool modal = false");
replace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
replace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
}
diff --git a/languages/cpp/subclassingdlg.h b/languages/cpp/subclassingdlg.h
index 93fe9279..ee3a05d4 100644
--- a/languages/cpp/subclassingdlg.h
+++ b/languages/cpp/subclassingdlg.h
@@ -43,10 +43,10 @@ class SubclassingDlg : public SubclassingDlgBase
public:
SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, TQStringList &newFileNames,
TQWidget* parent = 0, const char* name = 0,
- bool modal = FALSE, WFlags fl = 0 );
+ bool modal = false, WFlags fl = 0 );
SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, const TQString &filename, TQStringList &dummy,
TQWidget* parent = 0, const char* name = 0,
- bool modal = FALSE, WFlags fl = 0 );
+ bool modal = false, WFlags fl = 0 );
~SubclassingDlg();
private: