Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / utility / ikeyvaluetreeerror.cpp
index e9f258dbd86713110a6a9f8d3a9462b64837e01f..d4ed991b3a5ed08f7bc69a4150fa5f72263d28de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2018, by the GROMACS development team, led by
+ * Copyright (c) 2016,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -48,24 +48,21 @@ namespace
 
 class DefaultKeyValueTreeErrorHandler : public IKeyValueTreeErrorHandler
 {
-    public:
-        bool onError(UserInputError *ex, const KeyValueTreePath &context) override
-        {
-            std::string message
-                = formatString("While processing '%s':", context.toString().c_str());
-            ex->prependContext(message);
-            return false;
-        }
+public:
+    bool onError(UserInputError* ex, const KeyValueTreePath& context) override
+    {
+        std::string message = formatString("While processing '%s':", context.toString().c_str());
+        ex->prependContext(message);
+        return false;
+    }
 };
 
-}   // namespace
+} // namespace
 
-IKeyValueTreeErrorHandler::~IKeyValueTreeErrorHandler()
-{
-}
+IKeyValueTreeErrorHandler::~IKeyValueTreeErrorHandler() {}
 
 //! \cond libapi
-IKeyValueTreeErrorHandler *defaultKeyValueTreeErrorHandler()
+IKeyValueTreeErrorHandlerdefaultKeyValueTreeErrorHandler()
 {
     static DefaultKeyValueTreeErrorHandler instance;
     return &instance;