[asterisk-scf-commits] asterisk-scf/release/logger.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Jan 7 13:40:50 UTC 2011
branch "master" has been updated
via 554326af9808dd5830de626e5e2ee8931168a9b6 (commit)
from 3c7e5ae1e04eef989f73b3811e713d2ab667fc9e (commit)
Summary of changes:
server/src/main.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 554326af9808dd5830de626e5e2ee8931168a9b6
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Fri Jan 7 07:40:18 2011 -0600
Don't provide names for exception objects in catch() clauses unless
the code is actually going to refer to the object in some way... otherwise
Visual Studio complains about an unreferenced local variable.
diff --git a/server/src/main.cpp b/server/src/main.cpp
index 73edd63..54732bd 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -121,13 +121,13 @@ void LoggingService::start(const std::string& name,
{
topic = topicManager->retrieve(ServerConfigurationTopic);
}
- catch (const IceStorm::NoSuchTopic& e)
+ catch (const IceStorm::NoSuchTopic&)
{
try
{
topic = topicManager->create(ServerConfigurationTopic);
}
- catch (const IceStorm::TopicExists& e)
+ catch (const IceStorm::TopicExists&)
{
// we had a race to create the object w/ someone else
// and lost
-----------------------------------------------------------------------
--
asterisk-scf/release/logger.git
More information about the asterisk-scf-commits
mailing list