summaryrefslogtreecommitdiffstats
path: root/src/sql/tqsqldriver.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-06 17:33:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-07 11:57:25 +0900
commit5a863a8932d14b99c5f838c4efa1618070d71b29 (patch)
tree000bd50b5c488635f9663b16b7fbfe5380435a04 /src/sql/tqsqldriver.cpp
parent771af909e74927126fba90ec6e0298dc68d5bf4f (diff)
downloadtqt-5a863a8932d14b99c5f838c4efa1618070d71b29.tar.gz
tqt-5a863a8932d14b99c5f838c4efa1618070d71b29.zip
Replace TRUE/FALSE with boolean values true/false - part 7HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/sql/tqsqldriver.cpp')
-rw-r--r--src/sql/tqsqldriver.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/sql/tqsqldriver.cpp b/src/sql/tqsqldriver.cpp
index d688b9a46..d608805cd 100644
--- a/src/sql/tqsqldriver.cpp
+++ b/src/sql/tqsqldriver.cpp
@@ -93,7 +93,7 @@ TQSqlDriver::~TQSqlDriver()
order to open a database connection on database \a db, using user
name \a user, password \a password, host \a host and port \a port.
- The function \e must return TRUE on success and FALSE on failure.
+ The function \e must return true on success and false on failure.
\sa setOpen()
@@ -103,8 +103,8 @@ TQSqlDriver::~TQSqlDriver()
\fn bool TQSqlDriver::close()
Derived classes must reimplement this abstract virtual function in
- order to close the database connection. Return TRUE on success,
- FALSE on failure.
+ order to close the database connection. Return true on success,
+ false on failure.
\sa setOpen()
@@ -126,8 +126,8 @@ TQSqlDriver::~TQSqlDriver()
//}
/*!
- Returns TRUE if the database connection is open; otherwise returns
- FALSE.
+ Returns true if the database connection is open; otherwise returns
+ false.
*/
bool TQSqlDriver::isOpen() const
@@ -142,8 +142,8 @@ bool TQSqlDriver::isOpen() const
}
/*!
- Returns TRUE if the there was an error opening the database
- connection; otherwise returns FALSE.
+ Returns true if the there was an error opening the database
+ connection; otherwise returns false.
*/
bool TQSqlDriver::isOpenError() const
@@ -178,8 +178,8 @@ bool TQSqlDriver::isOpenError() const
/*!
\fn bool TQSqlDriver::hasFeature( DriverFeature f ) const
- Returns TRUE if the driver supports feature \a f; otherwise
- returns FALSE.
+ Returns true if the driver supports feature \a f; otherwise
+ returns false.
Note that some databases need to be open() before this can be
determined.
@@ -206,8 +206,8 @@ void TQSqlDriver::setOpen( bool o )
/*!
Protected function which sets the open error state of the database
to \a e. Derived classes can use this function to report the
- status of open(). Note that if \a e is TRUE the open state of the
- database is set to closed (i.e. isOpen() returns FALSE).
+ status of open(). Note that if \a e is true the open state of the
+ database is set to closed (i.e. isOpen() returns false).
\sa open(), setOpenError()
*/
@@ -224,41 +224,41 @@ void TQSqlDriver::setOpenError( bool e )
/*!
Protected function which derived classes can reimplement to begin
- a transaction. If successful, return TRUE, otherwise return FALSE.
- The default implementation returns FALSE.
+ a transaction. If successful, return true, otherwise return false.
+ The default implementation returns false.
\sa commitTransaction(), rollbackTransaction()
*/
bool TQSqlDriver::beginTransaction()
{
- return FALSE;
+ return false;
}
/*!
Protected function which derived classes can reimplement to commit
- a transaction. If successful, return TRUE, otherwise return FALSE.
- The default implementation returns FALSE.
+ a transaction. If successful, return true, otherwise return false.
+ The default implementation returns false.
\sa beginTransaction(), rollbackTransaction()
*/
bool TQSqlDriver::commitTransaction()
{
- return FALSE;
+ return false;
}
/*!
Protected function which derived classes can reimplement to
- rollback a transaction. If successful, return TRUE, otherwise
- return FALSE. The default implementation returns FALSE.
+ rollback a transaction. If successful, return true, otherwise
+ return false. The default implementation returns false.
\sa beginTransaction(), commitTransaction()
*/
bool TQSqlDriver::rollbackTransaction()
{
- return FALSE;
+ return false;
}
/*!
@@ -387,7 +387,7 @@ TQString TQSqlDriver::nullText() const
in single quotation marks, which is appropriate for many SQL
databases. Any embedded single-quote characters are escaped
(replaced with two single-quote characters). If \a trimStrings is
- TRUE (the default is FALSE), all trailing whitespace is trimmed
+ true (the default is false), all trailing whitespace is trimmed
from the field.
\i If \a field is date/time data, the value is formatted in ISO
@@ -487,7 +487,7 @@ TQString TQSqlDriver::formatValue( const TQSqlField* field, bool trimStrings ) c
user, password \a password, host \a host, port \a port and
connection options \a connOpts.
- Returns TRUE on success and FALSE on failure.
+ Returns true on success and false on failure.
\sa setOpen()
*/