summaryrefslogtreecommitdiffstats
path: root/filters/karbon/ai
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 18:11:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 19:23:45 +0900
commit0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch)
tree962f6ea26d1fab041fe3476fbbd64132ab8ada1b /filters/karbon/ai
parentcb258b7e39ffa5662b57e7d9006e69172a378d7e (diff)
downloadkoffice-r14.1.4.tar.gz
koffice-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'filters/karbon/ai')
-rw-r--r--filters/karbon/ai/aielement.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/filters/karbon/ai/aielement.cpp b/filters/karbon/ai/aielement.cpp
index f6f451640..89e4d7162 100644
--- a/filters/karbon/ai/aielement.cpp
+++ b/filters/karbon/ai/aielement.cpp
@@ -670,7 +670,7 @@ TQByteArray& AIElement::asByteArray()
}
/*!
- Returns TRUE if the aielement's type can be cast to the requested
+ Returns true if the aielement's type can be cast to the requested
type, \p t. Such casting is done automatically when calling the
toInt(), ... or asInt(), ... methods.
@@ -686,19 +686,19 @@ TQByteArray& AIElement::asByteArray()
bool AIElement::canCast( Type t ) const
{
if ( d->typ == t )
- return TRUE;
+ return true;
if ( t == Int && ( d->typ == String || d->typ == Double || d->typ == UInt || d->typ == Byte) )
- return TRUE;
+ return true;
if ( t == UInt && ( d->typ == String || d->typ == Double || d->typ == Int || d->typ == Byte) )
- return TRUE;
+ return true;
if ( t == Double && ( d->typ == String || d->typ == Int || d->typ == UInt || d->typ == Byte) )
- return TRUE;
+ return true;
if ( t == CString && d->typ == String )
- return TRUE;
+ return true;
if ( t == String && ( d->typ == CString || d->typ == Int || d->typ == UInt || d->typ == Double || d->typ == Byte) )
- return TRUE;
+ return true;
- return FALSE;
+ return false;
}
/*!
@@ -710,8 +710,8 @@ bool AIElement::canCast( Type t ) const
AIElement::String, an empty point array if the requested type \p t is
AIElement::PointArray, etc).
- \returns TRUE if the current type of the
- aielement was successfully casted; otherwise returns FALSE.
+ \returns true if the current type of the
+ aielement was successfully casted; otherwise returns false.
\see canCast()
*/
@@ -756,14 +756,14 @@ bool AIElement::cast( Type t )
return canCast( t );
}
-/*! Compares this AIElement with \a v and returns TRUE if they are
- equal; otherwise returns FALSE.
+/*! Compares this AIElement with \a v and returns true if they are
+ equal; otherwise returns false.
*/
bool AIElement::operator==( const AIElement &v ) const
{
if ( !v.canCast( type() ) )
- return FALSE;
+ return false;
switch( d->typ ) {
/* case List:
return v.toList() == toList(); */
@@ -791,11 +791,11 @@ bool AIElement::operator==( const AIElement &v ) const
case Invalid:
break;
}
- return FALSE;
+ return false;
}
-/*! Compares this AIElement with \a v and returns TRUE if they are
- not equal; otherwise returns FALSE.
+/*! Compares this AIElement with \a v and returns true if they are
+ not equal; otherwise returns false.
*/
bool AIElement::operator!=( const AIElement &v ) const