From cd16b39d7a138d4ff08a25bfe62f9e682a000aec Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 14 Jun 2007 13:03:22 +0000 Subject: Fixed catch clauses to catch by const & and use std::exception for "generic" catches. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@547241 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/topic_publisher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src/tests/topic_publisher.cpp') diff --git a/qpid/cpp/src/tests/topic_publisher.cpp b/qpid/cpp/src/tests/topic_publisher.cpp index 7c16dd71f3..9384053e68 100644 --- a/qpid/cpp/src/tests/topic_publisher.cpp +++ b/qpid/cpp/src/tests/topic_publisher.cpp @@ -157,7 +157,7 @@ int main(int argc, char** argv) { channel.close(); connection.close(); return 0; - }catch(qpid::QpidError error) { + }catch(std::exception& error) { std::cout << error.what() << std::endl; } } -- cgit v1.2.1