summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2018-02-02 19:00:58 +0100
committerDavid Tardon <dtardon@redhat.com>2018-02-02 19:00:58 +0100
commit1e903849a5166728f37ed4604b953f7d6d40574c (patch)
tree3e895b674018e2452ce5bd4cf16a0c5bd549040a
parent806ae992ed9b585225115d91599e1a50bb4a9d7f (diff)
include own headers first
Change-Id: I23299ee382d556bb13554d8a7a06135ee6b45fae
-rw-r--r--src/lib/CDRCollector.cpp3
-rw-r--r--src/lib/CDRContentCollector.cpp3
-rw-r--r--src/lib/CDRInternalStream.cpp3
-rw-r--r--src/lib/CDRParser.cpp3
-rw-r--r--src/lib/CDRPath.cpp3
-rw-r--r--src/lib/CDRStylesCollector.cpp1
-rw-r--r--src/lib/CMXParser.cpp3
-rw-r--r--src/lib/CommonParser.cpp3
-rw-r--r--src/lib/libcdr_utils.cpp4
9 files changed, 17 insertions, 9 deletions
diff --git a/src/lib/CDRCollector.cpp b/src/lib/CDRCollector.cpp
index fae0069..0119a54 100644
--- a/src/lib/CDRCollector.cpp
+++ b/src/lib/CDRCollector.cpp
@@ -7,11 +7,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CDRCollector.h"
+
#include <math.h>
#include <stack>
#include <string.h>
#include <lcms2.h>
-#include "CDRCollector.h"
#include "CDRColorProfiles.h"
#include "libcdr_utils.h"
diff --git a/src/lib/CDRContentCollector.cpp b/src/lib/CDRContentCollector.cpp
index 88e6106..0487319 100644
--- a/src/lib/CDRContentCollector.cpp
+++ b/src/lib/CDRContentCollector.cpp
@@ -7,11 +7,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CDRContentCollector.h"
+
#include <math.h>
#include <string.h>
#include <librevenge/librevenge.h>
#include <libcdr/libcdr.h>
-#include "CDRContentCollector.h"
#include "CDROutputElementList.h"
#include "libcdr_utils.h"
diff --git a/src/lib/CDRInternalStream.cpp b/src/lib/CDRInternalStream.cpp
index 465bdd0..d8171d7 100644
--- a/src/lib/CDRInternalStream.cpp
+++ b/src/lib/CDRInternalStream.cpp
@@ -7,8 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include <zlib.h>
#include "CDRInternalStream.h"
+
+#include <zlib.h>
#include <string.h> // for memcpy
diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 0744305..6528d32 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CDRParser.h"
+
#include <locale.h>
#include <math.h>
#include <string.h>
@@ -23,7 +25,6 @@
#include "libcdr_utils.h"
#include "CDRDocumentStructure.h"
#include "CDRInternalStream.h"
-#include "CDRParser.h"
#include "CDRCollector.h"
#include "CDRColorPalettes.h"
diff --git a/src/lib/CDRPath.cpp b/src/lib/CDRPath.cpp
index 00534b0..e31581e 100644
--- a/src/lib/CDRPath.cpp
+++ b/src/lib/CDRPath.cpp
@@ -7,10 +7,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CDRPath.h"
+
#include <math.h>
#include <map>
-#include "CDRPath.h"
#include "CDRTransforms.h"
#ifndef DEBUG_SPLINES
diff --git a/src/lib/CDRStylesCollector.cpp b/src/lib/CDRStylesCollector.cpp
index ddb8397..2dfeba2 100644
--- a/src/lib/CDRStylesCollector.cpp
+++ b/src/lib/CDRStylesCollector.cpp
@@ -8,6 +8,7 @@
*/
#include "CDRStylesCollector.h"
+
#include "CDRInternalStream.h"
#include "libcdr_utils.h"
diff --git a/src/lib/CMXParser.cpp b/src/lib/CMXParser.cpp
index 2a4cc47..78cc417 100644
--- a/src/lib/CMXParser.cpp
+++ b/src/lib/CMXParser.cpp
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CMXParser.h"
+
#include <librevenge-stream/librevenge-stream.h>
#include <math.h>
@@ -15,7 +17,6 @@
#include "libcdr_utils.h"
#include "CDRPath.h"
-#include "CMXParser.h"
#include "CDRCollector.h"
#include "CDRDocumentStructure.h"
#include "CMXDocumentStructure.h"
diff --git a/src/lib/CommonParser.cpp b/src/lib/CommonParser.cpp
index 15a56ef..242b777 100644
--- a/src/lib/CommonParser.cpp
+++ b/src/lib/CommonParser.cpp
@@ -7,12 +7,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "CommonParser.h"
+
#include <string.h>
#include "CDRCollector.h"
#include "CDRPath.h"
#include "libcdr_utils.h"
-#include "CommonParser.h"
libcdr::CommonParser::CommonParser(libcdr::CDRCollector *collector)
: m_collector(collector), m_precision(libcdr::PRECISION_UNKNOWN) {}
diff --git a/src/lib/libcdr_utils.cpp b/src/lib/libcdr_utils.cpp
index 0db5a5c..09ab42e 100644
--- a/src/lib/libcdr_utils.cpp
+++ b/src/lib/libcdr_utils.cpp
@@ -7,13 +7,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "libcdr_utils.h"
+
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <string.h>
-#include "libcdr_utils.h"
-
#include <unicode/ucsdet.h>
#include <unicode/ucnv.h>
#include <unicode/utypes.h>