summaryrefslogtreecommitdiffstats
path: root/document/src/tests/testbytebuffer.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-02-07 13:14:06 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-02-07 13:14:06 +0100
commit32af101a25225ac4fb5966e3dc55fd9c2e26ab76 (patch)
tree407ab4102a3d7ac88fb68f5267880894aca15c34 /document/src/tests/testbytebuffer.cpp
parent301f093c2d09369687dbdc495045e5ad53e724ed (diff)
Eliminate clang warnings in document
Diffstat (limited to 'document/src/tests/testbytebuffer.cpp')
-rw-r--r--document/src/tests/testbytebuffer.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/document/src/tests/testbytebuffer.cpp b/document/src/tests/testbytebuffer.cpp
index baa4bb65249..777803d621b 100644
--- a/document/src/tests/testbytebuffer.cpp
+++ b/document/src/tests/testbytebuffer.cpp
@@ -13,6 +13,15 @@ using namespace document;
CPPUNIT_TEST_SUITE_REGISTRATION( ByteBuffer_Test );
+namespace {
+
+template <typename S>
+void assign(S &lhs, const S &rhs)
+{
+ lhs = rhs;
+}
+
+}
void ByteBuffer_Test::setUp()
{
@@ -79,7 +88,7 @@ void ByteBuffer_Test::test_assignment_operator()
// Test Selfassignment == no change
//
- b2 = b2;
+ assign(b2, b2);
CPPUNIT_ASSERT_EQUAL(b1.getPos(),b2.getPos());