[Libreoffice-commits] libcdr.git: src/lib

David Tardon dtardon at redhat.com
Tue May 16 14:28:40 UTC 2017


 src/lib/CDRContentCollector.cpp |    4 ----
 src/lib/CDRParser.cpp           |    4 ----
 src/lib/CDRPath.cpp             |    4 ----
 src/lib/CDRStylesCollector.cpp  |    4 ----
 src/lib/CMXParser.cpp           |    4 ----
 src/lib/CommonParser.cpp        |    4 ----
 6 files changed, 24 deletions(-)

New commits:
commit badddb69ec352d98d145e86577959d5523bdcc8d
Author: David Tardon <dtardon at redhat.com>
Date:   Tue May 16 16:28:15 2017 +0200

    one definition of M_PI is enough
    
    Change-Id: I9ad24445117ecd8bcbd00ce664029ddc392f4846

diff --git a/src/lib/CDRContentCollector.cpp b/src/lib/CDRContentCollector.cpp
index ed6640a..d9e143e 100644
--- a/src/lib/CDRContentCollector.cpp
+++ b/src/lib/CDRContentCollector.cpp
@@ -15,10 +15,6 @@
 #include "CDRInternalStream.h"
 #include "libcdr_utils.h"
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 #ifndef DUMP_PATTERN
 #define DUMP_PATTERN 0
 #endif
diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 43748fe..617dea6 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -31,10 +31,6 @@
 #define DUMP_PREVIEW_IMAGE 0
 #endif
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 namespace
 {
 
diff --git a/src/lib/CDRPath.cpp b/src/lib/CDRPath.cpp
index 0ece4ed..45b0bc6 100644
--- a/src/lib/CDRPath.cpp
+++ b/src/lib/CDRPath.cpp
@@ -12,10 +12,6 @@
 #include "CDRPath.h"
 #include "CDRTypes.h"
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 #ifndef DEBUG_SPLINES
 #define DEBUG_SPLINES 0
 #endif
diff --git a/src/lib/CDRStylesCollector.cpp b/src/lib/CDRStylesCollector.cpp
index 99f6caf..11a39f3 100644
--- a/src/lib/CDRStylesCollector.cpp
+++ b/src/lib/CDRStylesCollector.cpp
@@ -13,10 +13,6 @@
 #include "CDRInternalStream.h"
 #include "libcdr_utils.h"
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 #ifndef DUMP_IMAGE
 #define DUMP_IMAGE 0
 #endif
diff --git a/src/lib/CMXParser.cpp b/src/lib/CMXParser.cpp
index 525fa01..5abc4f0 100644
--- a/src/lib/CMXParser.cpp
+++ b/src/lib/CMXParser.cpp
@@ -29,10 +29,6 @@
 #define DUMP_IMAGE 0
 #endif
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 namespace
 {
 
diff --git a/src/lib/CommonParser.cpp b/src/lib/CommonParser.cpp
index 022a0af..2c3e4e4 100644
--- a/src/lib/CommonParser.cpp
+++ b/src/lib/CommonParser.cpp
@@ -12,10 +12,6 @@
 #include "libcdr_utils.h"
 #include "CommonParser.h"
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 libcdr::CommonParser::CommonParser(libcdr::CDRCollector *collector)
   : m_collector(collector), m_precision(libcdr::PRECISION_UNKNOWN) {}
 


More information about the Libreoffice-commits mailing list