[gnote] Make NotebookManager reference NoteManagerBase



commit 18b92de774e30d6327f61e3cd01ba7a8f2d99011
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Dec 22 22:22:38 2019 +0200

    Make NotebookManager reference NoteManagerBase

 src/notebooks/notebookmanager.cpp | 2 +-
 src/notebooks/notebookmanager.hpp | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/notebooks/notebookmanager.cpp b/src/notebooks/notebookmanager.cpp
index 17bdd2d7..a03a0c52 100644
--- a/src/notebooks/notebookmanager.cpp
+++ b/src/notebooks/notebookmanager.cpp
@@ -37,7 +37,7 @@
 namespace gnote {
   namespace notebooks {
 
-    NotebookManager::NotebookManager(NoteManager & manager)
+    NotebookManager::NotebookManager(NoteManagerBase & manager)
       : m_adding_notebook(false)
       , m_active_notes(new ActiveNotesNotebook(manager))
       , m_note_manager(manager)
diff --git a/src/notebooks/notebookmanager.hpp b/src/notebooks/notebookmanager.hpp
index 10e6369d..d3119ed2 100644
--- a/src/notebooks/notebookmanager.hpp
+++ b/src/notebooks/notebookmanager.hpp
@@ -47,10 +47,10 @@ class NotebookManager
 public:
   typedef sigc::signal<void, const Note &, const Notebook::Ptr &> NotebookEventHandler;
 
-  NotebookManager(NoteManager &);
+  NotebookManager(NoteManagerBase &);
   void init();
 
-  NoteManager & note_manager() const
+  NoteManagerBase & note_manager() const
     {
       return m_note_manager;
     }
@@ -132,7 +132,7 @@ private:
   NotebookEventHandler                 m_note_added_to_notebook;
   NotebookEventHandler                 m_note_removed_from_notebook;
   Notebook::Ptr                        m_active_notes;
-  NoteManager                        & m_note_manager;
+  NoteManagerBase                    & m_note_manager;
 };
 
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]