~vcs-imports/gnote/master

« back to all changes in this revision

Viewing changes to src/notemanager.cpp

  • Committer: Aurimas Černius
  • Date: 2022-05-22 19:49:40 UTC
  • Revision ID: git-v1:d112f9db31444bd29857b10f2976fc39a6e49545
More move semantics

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * gnote
3
3
 *
4
 
 * Copyright (C) 2010-2014,2017,2019-2021 Aurimas Cernius
 
4
 * Copyright (C) 2010-2014,2017,2019-2022 Aurimas Cernius
5
5
 * Copyright (C) 2010 Debarshi Ray
6
6
 * Copyright (C) 2009 Hubert Figuiere
7
7
 *
278
278
    return new_note;
279
279
  }
280
280
 
281
 
  NoteBase::Ptr NoteManager::note_create_new(const Glib::ustring & title, const Glib::ustring & file_name)
 
281
  NoteBase::Ptr NoteManager::note_create_new(Glib::ustring && title, Glib::ustring && file_name)
282
282
  {
283
 
    return Note::create_new_note(Glib::ustring(title), Glib::ustring(file_name), *this, m_gnote);
 
283
    return Note::create_new_note(std::move(title), std::move(file_name), *this, m_gnote);
284
284
  }
285
285
 
286
286
  NoteBase::Ptr NoteManager::get_or_create_template_note()