aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_id.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-09 21:14:17 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-09 21:14:17 +0100
commit5dbb7636dd880314d5b03379ebfd960b469ee6e9 (patch)
tree6a9a062efbf6aa03dcbdc92b6abf156108904ea2 /paludis/package_id.cc
parentc9137efc3ef08b5c52f775dd853c1c675e80cc64 (diff)
downloadpaludis-5dbb7636dd880314d5b03379ebfd960b469ee6e9.tar.gz
paludis-5dbb7636dd880314d5b03379ebfd960b469ee6e9.tar.xz
Replace Validated with WrappedValue
Slightly cleaner code, and will allow us to pass in additional validation options.
Diffstat (limited to 'paludis/package_id.cc')
-rw-r--r--paludis/package_id.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/package_id.cc b/paludis/package_id.cc
index 1d5e5edd6..c7e56551c 100644
--- a/paludis/package_id.cc
+++ b/paludis/package_id.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 2010 Ciaran McCreesh
*
* 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
@@ -150,10 +150,10 @@ PackageIDSetComparator::operator() (const std::tr1::shared_ptr<const PackageID>
if (a->version() > b->version())
return false;
- if (a->repository()->name().data() < b->repository()->name().data())
+ if (a->repository()->name().value() < b->repository()->name().value())
return true;
- if (a->repository()->name().data() > b->repository()->name().data())
+ if (a->repository()->name().value() > b->repository()->name().value())
return false;
return a->arbitrary_less_than_comparison(*b);