summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kpartapp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kpartapp')
-rw-r--r--languages/cpp/app_templates/kpartapp/app.cpp2
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.cpp10
2 files changed, 6 insertions, 6 deletions
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);
}