1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From d19460fd6eae693832e4c5160aa2071bf71062f6 Mon Sep 17 00:00:00 2001
From: Mavridis Philippe <mavridisf@gmail.com>
Date: Thu, 8 Jul 2021 23:14:10 +0300
Subject: Corrected boolean usage to conform with C++17 standard.
This resolves a FTBFS on some systems.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
---
kfaxview/libkfaximage/faxinit.cpp | 4 ++--
1 file 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);
--
cgit v1.2.1
|