summaryrefslogtreecommitdiff
blob: 2e1c13703dd064eb76ab2205cbc57ed5777aefad (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
--- filters/kspread/latex/export/table.cc~	2003-08-19 13:38:51.000000000 -0700
+++ filters/kspread/latex/export/table.cc	2003-08-19 15:01:47.000000000 -0700
@@ -20,6 +20,7 @@
 */
 
 #include <kdebug.h>		/* for kdDebug stream */
+#include <qbitarray.h>
 #include "cell.h"
 #include "column.h"
 #include "row.h"
@@ -269,7 +270,7 @@
 {
 	
 	Cell* cell = 0;
-	bool border[getMaxColumn()];
+	QBitArray border(getMaxColumn());
 	bool fullLine = true;
 	for(int index = 1; index <= getMaxColumn(); index++)
 	{
@@ -302,7 +303,7 @@
 				int begin = index;
 				int end;
 				index = index + 1;
-				while(border[index] == true && index < getMaxColumn())
+				while(border[index] && index < getMaxColumn())
 				{
 					index = index + 1;
 				}
@@ -325,7 +326,7 @@
 void Table::generateBottomLineBorder(QTextStream& out, int row)
 {
 	Cell* cell = 0;
-	bool border[getMaxColumn()];
+	QBitArray border(getMaxColumn());
 	bool fullLine = true;
 
 	for(int index = 1; index <= getMaxColumn(); index++)
@@ -358,7 +359,7 @@
 				int begin = index;
 				int end;
 				index = index + 1;
-				while(border[index] == true && index < getMaxColumn())
+				while(border[index] && index < getMaxColumn())
 				{
 					index = index + 1;
 				}