summaryrefslogtreecommitdiffstats
path: root/src/LoggerListeners.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-08-01 20:18:03 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-01 21:04:31 +0200
commit46398f4671012a0d913bd7bc0c70ffdc2645f2ac (patch)
tree11d766b1ce592e526b6cbac8d7a245208bdce26e /src/LoggerListeners.cpp
parentAdded HandleCraftItem call to ShiftClickedResult to make sure achievements are awarded (#4791) (diff)
downloadcuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar.gz
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar.bz2
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar.lz
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar.xz
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.tar.zst
cuberite-46398f4671012a0d913bd7bc0c70ffdc2645f2ac.zip
Diffstat (limited to 'src/LoggerListeners.cpp')
-rw-r--r--src/LoggerListeners.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp
index b7c8fbb38..19b8c82d7 100644
--- a/src/LoggerListeners.cpp
+++ b/src/LoggerListeners.cpp
@@ -211,7 +211,7 @@ std::unique_ptr<cLogger::cListener> MakeConsoleListener(bool a_IsService)
{
if (a_IsService)
{
- return cpp14::make_unique<cNullConsoleListener>();
+ return std::make_unique<cNullConsoleListener>();
}
#ifdef _WIN32
@@ -223,24 +223,24 @@ std::unique_ptr<cLogger::cListener> MakeConsoleListener(bool a_IsService)
HANDLE Console = GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo(Console, &sbi);
WORD DefaultConsoleAttrib = sbi.wAttributes;
- return cpp14::make_unique<cWindowsConsoleListener>(Console, DefaultConsoleAttrib);
+ return std::make_unique<cWindowsConsoleListener>(Console, DefaultConsoleAttrib);
}
else
{
- return cpp14::make_unique<cVanillaCPPConsoleListener>();
+ return std::make_unique<cVanillaCPPConsoleListener>();
}
#elif defined (__linux) || defined (__APPLE__)
// TODO: lookup terminal in terminfo
if (isatty(fileno(stdout)))
{
- return cpp14::make_unique<cANSIConsoleListener>();
+ return std::make_unique<cANSIConsoleListener>();
}
else
{
- return cpp14::make_unique<cVanillaCPPConsoleListener>();
+ return std::make_unique<cVanillaCPPConsoleListener>();
}
#else
- return cpp14::make_unique<cVanillaCPPConsoleListener>();
+ return std::make_unique<cVanillaCPPConsoleListener>();
#endif
}
@@ -323,7 +323,7 @@ private:
std::pair<bool, std::unique_ptr<cLogger::cListener>> MakeFileListener()
{
- auto listener = cpp14::make_unique<cFileListener>();
+ auto listener = std::make_unique<cFileListener>();
if (!listener->Open())
{
return {false, nullptr};