aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-16 02:49:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-16 02:49:17 +0000
commit2cf1c2626c874a6d5ae2c4a4a0c9e8821fe2a636 (patch)
tree3a70ef25fff7ff5761594c8c35f26d08b9306d6c
parent34656f47c30da543967d96a0e8ee30b36410d9f6 (diff)
downloadpaludis-2cf1c2626c874a6d5ae2c4a4a0c9e8821fe2a636.tar.gz
paludis-2cf1c2626c874a6d5ae2c4a4a0c9e8821fe2a636.tar.xz
Mark string constructor as explicit
-rw-r--r--paludis/version_operator.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/version_operator.hh b/paludis/version_operator.hh
index 49588e0..d2ce91d 100644
--- a/paludis/version_operator.hh
+++ b/paludis/version_operator.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+ * Copyright (c) 2005, 2006, 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -92,7 +92,7 @@ namespace paludis
/**
* Constructor, from a string.
*/
- VersionOperator(const std::string & v) :
+ explicit VersionOperator(const std::string & v) :
ComparisonPolicyType(&VersionOperator::_v),
_v(_decode(v))
{