mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-28 04:07:32 -07:00
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
--- a/src/BasicLayout.cpp
|
|
+++ b/src/BasicLayout.cpp
|
|
@@ -17,6 +17,8 @@
|
|
#include <sstream>
|
|
#endif
|
|
|
|
+#include <memory>
|
|
+
|
|
namespace log4cpp {
|
|
|
|
BasicLayout::BasicLayout() {
|
|
--- a/src/PatternLayout.cpp
|
|
+++ b/src/PatternLayout.cpp
|
|
@@ -373,7 +373,7 @@
|
|
literal = "";
|
|
}
|
|
if ((minWidth != 0) || (maxWidth != 0)) {
|
|
- component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0);
|
|
+ component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0);
|
|
minWidth = maxWidth = 0;
|
|
}
|
|
_components.push_back(component);
|
|
--- a/tests/testDailyRollingFileAppender.cpp
|
|
+++ b/tests/testDailyRollingFileAppender.cpp
|
|
@@ -40,7 +40,7 @@
|
|
#else
|
|
#define PATHDELIMITER "\\"
|
|
#endif
|
|
-const char* const nesteddirname = "nesteddir"PATHDELIMITER;
|
|
+const char* const nesteddirname = "nesteddir" PATHDELIMITER;
|
|
|
|
|
|
class DailyRollingTest {
|