summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/BrokerFixture.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-07-07 15:24:11 +0000
committerAlan Conway <aconway@apache.org>2014-07-07 15:24:11 +0000
commite5433801093970abd30c17f34b0957a748a8aefb (patch)
tree66aeab4162c3c117b6106391f0bc8d9eb2622210 /qpid/cpp/src/tests/BrokerFixture.h
parentbdfeb15856ee777284653e88bbfbb03c08e20021 (diff)
downloadqpid-python-e5433801093970abd30c17f34b0957a748a8aefb.tar.gz
NO-JIRA: Fix defects found by coverity.
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/6?tab=overview ** CID 1224524: Big parameter passed by value (PASS_BY_VALUE) /qpidbuilds/trunk/qpid/cpp/src/tests/BrokerFixture.h: 155 in qpid::tests::SessionFixtureT<qpid::tests::LocalConnection, qpid::client::Session_0_10>::SessionFixtureT(qpid::broker::BrokerOptions)() ** CID 1224525: Big parameter passed by value (PASS_BY_VALUE) /qpidbuilds/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp: 108 in qpid::tests::ClientSessionFixture::ClientSessionFixture(qpid::broker::BrokerOptions)() ** CID 1224526: Big parameter passed by value (PASS_BY_VALUE) /qpidbuilds/trunk/qpid/cpp/src/tests/MessagingFixture.h: 106 in qpid::tests::MessagingFixture::MessagingFixture(qpid::broker::BrokerOptions, bool)() ** CID 1224527: Wrapper object use after free (WRAPPER_ESCAPE) /qpidbuilds/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp: 276 in qpid::broker::CyrusAuthenticator::init()() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1608487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
-rw-r--r--qpid/cpp/src/tests/BrokerFixture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h
index 90b2dc47e0..9cf325587a 100644
--- a/qpid/cpp/src/tests/BrokerFixture.h
+++ b/qpid/cpp/src/tests/BrokerFixture.h
@@ -152,7 +152,7 @@ typedef ClientT<> Client;
template <class ConnectionType, class SessionType=qpid::client::Session>
struct SessionFixtureT : BrokerFixture, ClientT<ConnectionType,SessionType> {
- SessionFixtureT(BrokerOptions opts=BrokerOptions()) :
+ SessionFixtureT(const BrokerOptions& opts=BrokerOptions()) :
BrokerFixture(BrokerFixture::Args(), opts),
ClientT<ConnectionType,SessionType>(getPort())
{}