aboutsummaryrefslogtreecommitdiff
path: root/common/view
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-07 13:51:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-07 13:51:23 +0200
commit2a6f06ae44a80a5ebdc1b6188b11634fbb0e8741 (patch)
treeec632db851d165defead84dc65ca537e850d64d2 /common/view
parent9c304207722ff9e2794ba25bb496858f089e4a2a (diff)
Fix to use traditional const style
Diffstat (limited to 'common/view')
-rw-r--r--common/view/basics/test.hxx2
-rw-r--r--common/view/olv/driver.cxx12
2 files changed, 7 insertions, 7 deletions
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 ());