diff options
Diffstat (limited to 'Swiften/Base/format.h')
-rw-r--r-- | Swiften/Base/format.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Swiften/Base/format.h b/Swiften/Base/format.h index 07fcd88..e5696b0 100644 --- a/Swiften/Base/format.h +++ b/Swiften/Base/format.h @@ -11,16 +11,16 @@ #include <boost/format.hpp> namespace Swift { - inline boost::format format(const std::string& s) { - using namespace boost::io; - try { - boost::format fmter(s); - fmter.exceptions(no_error_bits); - return fmter; - } - catch (...) { - std::cerr << "Error: Invalid translation: " << s << std::endl; - throw; - } - } + inline boost::format format(const std::string& s) { + using namespace boost::io; + try { + boost::format fmter(s); + fmter.exceptions(no_error_bits); + return fmter; + } + catch (...) { + std::cerr << "Error: Invalid translation: " << s << std::endl; + throw; + } + } } |