diff options
author | Tobias Markmann <tm@ayena.de> | 2016-05-25 14:04:15 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2016-05-25 14:04:15 (GMT) |
commit | 57eb5cdb61b34a83030eee6a3fe2973d2c2fd48f (patch) | |
tree | 6035bb5883faed4e84261473bc77a1318c92c977 /SwifTools | |
parent | b2d3eae9fd085cd91b3efac53dca81fd450d5393 (diff) | |
download | swift-57eb5cdb61b34a83030eee6a3fe2973d2c2fd48f.zip swift-57eb5cdb61b34a83030eee6a3fe2973d2c2fd48f.tar.bz2 |
Remove unnecessary include of iostream header
Move std::cout/cerr logging to SWIFT_LOG.
Test-Information:
Builds and all tests pass on OS X 10.11.5.
Change-Id: I0a0c24654a8b3abf3244a79fd6d970eee90559d0
Diffstat (limited to 'SwifTools')
-rw-r--r-- | SwifTools/Application/ApplicationPathProvider.cpp | 5 | ||||
-rw-r--r-- | SwifTools/Application/MacOSXApplicationPathProvider.cpp | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/SwifTools/Application/ApplicationPathProvider.cpp b/SwifTools/Application/ApplicationPathProvider.cpp index 3a86f28..a5080f9 100644 --- a/SwifTools/Application/ApplicationPathProvider.cpp +++ b/SwifTools/Application/ApplicationPathProvider.cpp @@ -6,10 +6,9 @@ #include <SwifTools/Application/ApplicationPathProvider.h> -#include <iostream> - #include <boost/filesystem.hpp> +#include <Swiften/Base/Log.h> #include <Swiften/Base/Paths.h> #include <Swiften/Base/foreach.h> @@ -27,7 +26,7 @@ boost::filesystem::path ApplicationPathProvider::getProfileDir(const std::string boost::filesystem::create_directory(result); } catch (const boost::filesystem::filesystem_error& e) { - std::cerr << "ERROR: " << e.what() << std::endl; + SWIFT_LOG(error) << e.what() << std::endl; } return result; } diff --git a/SwifTools/Application/MacOSXApplicationPathProvider.cpp b/SwifTools/Application/MacOSXApplicationPathProvider.cpp index 086bbaa..684d8b2 100644 --- a/SwifTools/Application/MacOSXApplicationPathProvider.cpp +++ b/SwifTools/Application/MacOSXApplicationPathProvider.cpp @@ -6,10 +6,10 @@ #include <SwifTools/Application/MacOSXApplicationPathProvider.h> -#include <iostream> - #include <mach-o/dyld.h> +#include <Swiften/Base/Log.h> + namespace Swift { MacOSXApplicationPathProvider::MacOSXApplicationPathProvider(const std::string& name) : ApplicationPathProvider(name) { @@ -23,7 +23,7 @@ boost::filesystem::path MacOSXApplicationPathProvider::getDataDir() const { boost::filesystem::create_directory(result); } catch (const boost::filesystem::filesystem_error& e) { - std::cerr << "ERROR: " << e.what() << std::endl; + SWIFT_LOG(error) << e.what() << std::endl; } return result; } |