[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [qtcurve] lib/utils: [lib/utils] missing include of <string>, include <cstdlib> to fix std::abs ambi
From:       Yichao Yu <yyc1992 () gmail ! com>
Date:       2015-03-01 21:23:35
Message-ID: E1YSBKp-0001gm-Ky () scm ! kde ! org
[Download RAW message or body]

Git commit e09e1da8e1a6e9b09992851e4cd4570be9de95dc by Yichao Yu.
Committed on 01/03/2015 at 21:21.
Pushed by yuyichao into branch 'master'.

[lib/utils] missing include of <string>, include <cstdlib> to fix std::abs ambiguity

M  +1    -0    lib/utils/number.h
M  +2    -0    lib/utils/shadow.cpp
M  +1    -0    lib/utils/strs.h

http://commits.kde.org/qtcurve/e09e1da8e1a6e9b09992851e4cd4570be9de95dc

diff --git a/lib/utils/number.h b/lib/utils/number.h
index 189b2db..fad2dc7 100644
--- a/lib/utils/number.h
+++ b/lib/utils/number.h
@@ -24,6 +24,7 @@
 #include "utils.h"
 
 #include <cmath>
+#include <cstdlib>
 
 template <typename T1, typename T2>
 static inline auto
diff --git a/lib/utils/shadow.cpp b/lib/utils/shadow.cpp
index b743882..48d2fee 100644
--- a/lib/utils/shadow.cpp
+++ b/lib/utils/shadow.cpp
@@ -22,6 +22,8 @@
 #include "shadow_p.h"
 #include "log.h"
 
+#include <cstdlib>
+
 static void
 qtcCreateShadowGradient(float *buff, size_t size)
 {
diff --git a/lib/utils/strs.h b/lib/utils/strs.h
index 8141fd1..5bd81e7 100644
--- a/lib/utils/strs.h
+++ b/lib/utils/strs.h
@@ -28,6 +28,7 @@
 #include <array>
 #include <numeric>
 #include <functional>
+#include <string>
 
 namespace QtCurve {
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic