From 2a6f06ae44a80a5ebdc1b6188b11634fbb0e8741 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Feb 2015 13:51:23 +0200 Subject: Fix to use traditional const style --- common/view/basics/test.hxx | 2 +- common/view/olv/driver.cxx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'common/view') diff --git a/common/view/basics/test.hxx b/common/view/basics/test.hxx index f568d6c..7af255c 100644 --- a/common/view/basics/test.hxx +++ b/common/view/basics/test.hxx @@ -19,7 +19,7 @@ struct employer; #pragma db object struct country { - country (const std::string& c, std::string const& n) + country (const std::string& c, const std::string& n) : code (c), name (n) { } diff --git a/common/view/olv/driver.cxx b/common/view/olv/driver.cxx index e1eaed0..c91b8ef 100644 --- a/common/view/olv/driver.cxx +++ b/common/view/olv/driver.cxx @@ -188,7 +188,7 @@ main (int argc, char* argv[]) assert (i != r.end ()); { - view5 const& v (*i); + const view5& v (*i); assert (v.o4->o2[0]->s == "abc" && v.o4->o2[0]->o1->n == 123 && v.o4->o2[1]->s == "bcd" && v.o4->o2[1]->o1->n == 234 && @@ -196,7 +196,7 @@ main (int argc, char* argv[]) } assert (++i != r.end ()); { - view5 const& v (*i); + const view5& v (*i); assert (v.o4->o2[0]->s == "abc" && v.o4->o2[0]->o1->n == 123 && v.o4->o2[1]->s == "bcd" && v.o4->o2[1]->o1->n == 234 && @@ -419,12 +419,12 @@ main (int argc, char* argv[]) assert (i != r.end ()); { - view1 const& v (*i); + const view1& v (*i); assert (v.o1->n == 123 && v.o2->s == "abc" && v.o2->o1 == v.o1); } assert (++i != r.end ()); { - view1 const& v (*i); + const view1& v (*i); assert (v.o1->n == 234 && !v.o2); } assert (++i == r.end ()); @@ -454,12 +454,12 @@ main (int argc, char* argv[]) assert (i != r.end ()); { - view2 const& v (*i); + const view2& v (*i); assert (v.o3->n == 123 && v.o4->s == "abc" && v.o4->o3 == v.o3); } assert (++i != r.end ()); { - view2 const& v (*i); + const view2& v (*i); assert (v.o3->n == 234 && !v.o4); } assert (++i == r.end ()); -- cgit v1.1