[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
Mon Feb 21 09:35:45 CST 2011


branch "master" has been updated
       via  81ea1d5f5b6668733c15da3a30dd128d5295faac (commit)
      from  44eae42bc428ca2b83487e611f31c79260d1b322 (commit)

Summary of changes:
 client/test/IceConfigurator-test.cpp |    4 +---
 server/src/LoggingServer.cpp         |    5 +----
 2 files changed, 2 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 81ea1d5f5b6668733c15da3a30dd128d5295faac
Author: David M. Lee <dlee at digium.com>
Date:   Mon Feb 21 09:35:42 2011 -0600

    Fixed for new ClassMemberDefault slice translator plugin.

diff --git a/client/test/IceConfigurator-test.cpp b/client/test/IceConfigurator-test.cpp
index 0ec8fef..5c07dd4 100644
--- a/client/test/IceConfigurator-test.cpp
+++ b/client/test/IceConfigurator-test.cpp
@@ -26,9 +26,7 @@ namespace
 {
 void addConfig(Configuration& cfg, const std::string& name, Level logLevel)
 {
-    SourceConfiguration sourceConfig = {};
-    sourceConfig.name = name;
-    sourceConfig.logLevel = logLevel;
+    SourceConfiguration sourceConfig(name, logLevel);
 
     cfg.sourceSettings.push_back(sourceConfig);
 }
diff --git a/server/src/LoggingServer.cpp b/server/src/LoggingServer.cpp
index 43428aa..edd36b3 100644
--- a/server/src/LoggingServer.cpp
+++ b/server/src/LoggingServer.cpp
@@ -105,10 +105,7 @@ Configuration LoggingServerI::getConfiguration() const
     for (Sources::const_reverse_iterator i = mSources.rbegin(); i
              != mSources.rend(); ++i)
     {
-        SourceConfiguration v =
-            { };
-        v.name = i->first;
-        v.logLevel = i->second.getLogLevel();
+        SourceConfiguration v(i->first, i->second.getLogLevel());
         r.sourceSettings.push_back(v);
     }
     return r;

-----------------------------------------------------------------------


-- 
asterisk-scf/release/logger.git



More information about the asterisk-scf-commits mailing list