Enable clang-tidy for headers
[alexxy/gromacs.git] / src / gromacs / utility / keyvaluetree.h
index 5b7ea96c088d335289ed1dde13c88d6c76a52059..3cf0e0848e239dfd41bfed2320c19cd245b8df35 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018, 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.
@@ -248,7 +248,7 @@ class KeyValueTreeObject
             }
         }
         //! Assigns a deep copy of an object.
-        KeyValueTreeObject &operator=(KeyValueTreeObject &other)
+        KeyValueTreeObject &operator=(const KeyValueTreeObject &other)
         {
             KeyValueTreeObject tmp(other);
             std::swap(tmp.valueMap_, valueMap_);