diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-07-08 23:14:10 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-07-08 23:18:32 +0300 |
commit | 5275ed4e9f6988b70330ec1feb9854ff919d52b0 (patch) | |
tree | 53af979f51abb36fb0a1bf16a5dcc7244d14ce94 | |
parent | 0ef22169d672302e999f8cf4d5723d01282c87f1 (diff) | |
download | tdegraphics-5275ed4e9f6988b70330ec1feb9854ff919d52b0.tar.gz tdegraphics-5275ed4e9f6988b70330ec1feb9854ff919d52b0.zip |
Corrected boolean usage to conform with C++17 standard.
This resolves a FTBFS on some systems.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit d19460fd6eae693832e4c5160aa2071bf71062f6)
-rw-r--r-- | kfaxview/libkfaximage/faxinit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kfaxview/libkfaximage/faxinit.cpp b/kfaxview/libkfaximage/faxinit.cpp index aa6166aa..fa4517d2 100644 --- a/kfaxview/libkfaximage/faxinit.cpp +++ b/kfaxview/libkfaximage/faxinit.cpp @@ -319,11 +319,11 @@ FillTable(struct tabent *T, int Size, const struct proto *P, int State) void fax_init_tables(void) { - static bool already_initialized = 0; + static bool already_initialized = false; if (already_initialized) return; - ++already_initialized; + already_initialized = true; FillTable(MainTable, 7, Pass, S_Pass); FillTable(MainTable, 7, Horiz, S_Horiz); |