[gnote] Fixed variable naming in AddinManager::initialize_sharp_addins
- From: Debarshi Ray <debarshir src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnote] Fixed variable naming in AddinManager::initialize_sharp_addins
- Date: Thu, 31 Dec 2009 17:34:30 +0000 (UTC)
commit aaa22e78247d385f4ae769a024fb00af9d077976
Author: Debarshi Ray <debarshir src gnome org>
Date: Thu Dec 31 12:05:32 2009 +0200
Fixed variable naming in AddinManager::initialize_sharp_addins
src/addinmanager.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index 0947c55..1ba8795 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -154,19 +154,19 @@ namespace gnote {
f = dmod->query_interface(AddinPreferenceFactoryBase::IFACE_NAME);
if(f) {
AddinPreferenceFactoryBase * factory = dynamic_cast<AddinPreferenceFactoryBase*>((*f)());
- m_addin_prefs.insert(std::make_pair((*iter)->id(), factory));
+ m_addin_prefs.insert(std::make_pair(dmod->id(), factory));
}
f = dmod->query_interface(ImportAddin::IFACE_NAME);
if(f) {
- ImportAddin * factory = dynamic_cast<ImportAddin*>((*f)());
- m_import_addins.insert(std::make_pair((*iter)->id(), factory));
+ ImportAddin * addin = dynamic_cast<ImportAddin*>((*f)());
+ m_import_addins.insert(std::make_pair(dmod->id(), addin));
}
f = dmod->query_interface(ApplicationAddin::IFACE_NAME);
if(f) {
- ApplicationAddin * factory = dynamic_cast<ApplicationAddin*>((*f)());
- m_app_addins.insert(std::make_pair((*iter)->id(), factory));
+ ApplicationAddin * addin = dynamic_cast<ApplicationAddin*>((*f)());
+ m_app_addins.insert(std::make_pair(dmod->id(), addin));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]