[gnote] Use std::vector for m_builtin_ifaces
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use std::vector for m_builtin_ifaces
- Date: Sat, 13 Apr 2019 17:37:02 +0000 (UTC)
commit eb6e8bfa51ebd8a750adbf9ac8e76e3b75f431fa
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Apr 13 19:51:26 2019 +0300
Use std::vector for m_builtin_ifaces
src/addinmanager.cpp | 5 ++---
src/addinmanager.hpp | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index 565047c0..c8367a7e 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -116,9 +116,8 @@ namespace {
}
sharp::map_delete_all_second(m_addin_prefs);
sharp::map_delete_all_second(m_import_addins);
- for(std::list<sharp::IfaceFactoryBase*>::iterator iter = m_builtin_ifaces.begin();
- iter != m_builtin_ifaces.end(); ++iter) {
- delete *iter;
+ for(auto iter : m_builtin_ifaces) {
+ delete iter;
}
}
diff --git a/src/addinmanager.hpp b/src/addinmanager.hpp
index 830fc4a2..7ad13c24 100644
--- a/src/addinmanager.hpp
+++ b/src/addinmanager.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010,2012-2015,2017 Aurimas Cernius
+ * Copyright (C) 2010,2012-2015,2017,2019 Aurimas Cernius
* Copyright (C) 2009 Debarshi Ray
* Copyright (C) 2009 Hubert Figuiere
*
@@ -101,7 +101,7 @@ private:
Glib::ustring m_addins_prefs_dir;
Glib::ustring m_addins_prefs_file;
sharp::ModuleManager m_module_manager;
- std::list<sharp::IfaceFactoryBase*> m_builtin_ifaces;
+ std::vector<sharp::IfaceFactoryBase*> m_builtin_ifaces;
AddinInfoMap m_addin_infos;
/// Key = TypeExtensionNode.Id
typedef std::map<Glib::ustring, ApplicationAddin*> AppAddinMap;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]