[ekiga] Simplified the initialization of the gmconf personal details code
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Simplified the initialization of the gmconf personal details code
- Date: Thu, 21 Oct 2010 18:54:23 +0000 (UTC)
commit b1ffa37c974b48d15401df5152126a38e4b51a5f
Author: Snark <jpuydt gnome org>
Date: Thu Oct 21 12:02:00 2010 +0200
Simplified the initialization of the gmconf personal details code
.../gmconf-personal-details-main.cpp | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/lib/engine/components/gmconf-personal-details/gmconf-personal-details-main.cpp b/lib/engine/components/gmconf-personal-details/gmconf-personal-details-main.cpp
index 4d97f1f..20ac154 100644
--- a/lib/engine/components/gmconf-personal-details/gmconf-personal-details-main.cpp
+++ b/lib/engine/components/gmconf-personal-details/gmconf-personal-details-main.cpp
@@ -37,22 +37,11 @@
#include "gmconf-personal-details-main.h"
#include "gmconf-personal-details.h"
-#include <iostream>
bool
gmconf_personal_details_init (Ekiga::ServiceCore &core,
int * /*argc*/,
char ** /*argv*/[])
{
- bool result = false;
- boost::shared_ptr<Ekiga::PersonalDetails> personal_details = core.get<Ekiga::PersonalDetails> ("personal-details");
-
- if ( !personal_details) {
-
- boost::shared_ptr<Gmconf::PersonalDetails> gmconf_details (new Gmconf::PersonalDetails ());
- core.add (gmconf_details);
- result = true;
- }
-
- return result;
+ return core.add (boost::shared_ptr<Gmconf::PersonalDetails> (new Gmconf::PersonalDetails ()));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]