summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-30 12:16:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-31 08:25:07 +0200
commitc9253818ec8252169c20450b41878be459568d95 (patch)
tree1f271151725042f33c3c8aa3988343bcd7f89e12 /o3tl
parent242a796a71e29a1d8cdc4dd71d2465b898db32ab (diff)
loplugin:oncevar
extend oncevar to any POD type Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0 Reviewed-on: https://gerrit.libreoffice.org/40564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-array_view.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/o3tl/qa/test-array_view.cxx b/o3tl/qa/test-array_view.cxx
index 3a19c093304a..ab97d7de49c5 100644
--- a/o3tl/qa/test-array_view.cxx
+++ b/o3tl/qa/test-array_view.cxx
@@ -27,7 +27,7 @@ private:
void testOperations() {
- int some_data[] { 1, 2, 3 };
+ int const some_data[] { 1, 2, 3 };
o3tl::array_view<int> v(some_data);
CPPUNIT_ASSERT_EQUAL(1, *v.begin());
@@ -61,8 +61,8 @@ private:
CPPUNIT_ASSERT_EQUAL(3, v.back());
CPPUNIT_ASSERT_EQUAL(1, *v.data());
{
- int d1[] { 1, 2 };
- int d2[] { 3, 4, 5, 6 };
+ int const d1[] { 1, 2 };
+ int const d2[] { 3, 4, 5, 6 };
o3tl::array_view<int> v1( d1 );
o3tl::array_view<int> v2( d2 );
v1.swap(v2);