diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-19 13:04:32 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-20 22:38:26 +0900 |
| commit | f7cfd2e7d41e6d8c4eee02ba589cd0a449154398 (patch) | |
| tree | 44e06522f744b25d2c93f8a1a0d42d02484af762 /src/gvcore/xpm.cpp | |
| parent | f7d83fbf8c722615d0e791a692ee20126a7bacf1 (diff) | |
| download | gwenview-r14.1.4.tar.gz gwenview-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 90e340179f096e48a378636f02f7949e41b33d8e)
Diffstat (limited to 'src/gvcore/xpm.cpp')
| -rw-r--r-- | src/gvcore/xpm.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gvcore/xpm.cpp b/src/gvcore/xpm.cpp index c398540..b499919 100644 --- a/src/gvcore/xpm.cpp +++ b/src/gvcore/xpm.cpp @@ -92,14 +92,14 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of // Skip until ", read until the next ", return the rest in *buf -// Returns FALSE on error, TRUE on success +// Returns false on error, true on success static bool read_xpm_string( TQCString &buf, TQIODevice *d, const char * const *source, int &index ) { if ( source ) { buf = source[index++]; - return TRUE; + return true; } if ( buf.size() < 69 ) //# just an approximation @@ -110,7 +110,7 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d, int i; while ( (c=d->getch()) != EOF && c != '"' ) { } if ( c == EOF ) { - return FALSE; + return false; } i = 0; while ( (c=d->getch()) != EOF && c != '"' ) { @@ -119,13 +119,13 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d, buf[i++] = c; } if ( c == EOF ) { - return FALSE; + return false; } if ( i == (int)buf.size() ) // always use a 0 terminator buf.resize( i+1 ); buf[i] = '\0'; - return TRUE; + return true; } @@ -217,7 +217,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc buf.truncate(end); buf = buf.stripWhiteSpace(); if ( buf == "none" ) { - image.setAlphaBuffer( TRUE ); + image.setAlphaBuffer( true ); int transparentColor = currentColor; if ( image.depth() == 8 ) { image.setColor( transparentColor, |
