[gnote] Make NoteManager::create_with_guid take const guid
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make NoteManager::create_with_guid take const guid
- Date: Thu, 5 Jul 2012 20:31:14 +0000 (UTC)
commit a8ee5c98029ce7fd8aa7d2418014e0f8146f9bbe
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Thu Jul 5 23:16:07 2012 +0300
Make NoteManager::create_with_guid take const guid
Make seconds argument to this function a reference to const string.
src/notemanager.cpp | 2 +-
src/notemanager.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/notemanager.cpp b/src/notemanager.cpp
index 061eb2c..af07c9d 100644
--- a/src/notemanager.cpp
+++ b/src/notemanager.cpp
@@ -538,7 +538,7 @@ namespace gnote {
}
- Note::Ptr NoteManager::create_with_guid (const std::string & title, std::string & guid)
+ Note::Ptr NoteManager::create_with_guid (const std::string & title, const std::string & guid)
{
return create_new_note(title, guid);
}
diff --git a/src/notemanager.hpp b/src/notemanager.hpp
index 839e718..840ec4e 100644
--- a/src/notemanager.hpp
+++ b/src/notemanager.hpp
@@ -94,7 +94,7 @@ namespace gnote {
// Import a note read from file_path
// Will ensure the sanity including the unique title.
Note::Ptr import_note(const std::string & file_path);
- Note::Ptr create_with_guid(const std::string & title, std::string & guid);
+ Note::Ptr create_with_guid(const std::string & title, const std::string & guid);
Note::Ptr find_template_note() const;
Note::Ptr get_or_create_template_note();
static std::string get_note_template_content(const std::string & title);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]