[Libreoffice-commits] online.git: loolwsd/AdminModel.hpp loolwsd/Storage.cpp

Miklos Vajna vmiklos at collabora.co.uk
Wed Jul 27 07:22:36 UTC 2016


 loolwsd/AdminModel.hpp |    4 ++--
 loolwsd/Storage.cpp    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c3e2a6cd40dd8a44e0360dc7de8d1d95e0740fa1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Jul 27 09:22:12 2016 +0200

    AdminModel: use std::move()
    
    Change-Id: Ib83b91bdbec2f71d96873a6146065707173349df

diff --git a/loolwsd/AdminModel.hpp b/loolwsd/AdminModel.hpp
index b011f66..3a192b6 100644
--- a/loolwsd/AdminModel.hpp
+++ b/loolwsd/AdminModel.hpp
@@ -42,9 +42,9 @@ class Document
 {
 public:
     Document(std::string docKey, Poco::Process::PID pid, std::string filename)
-        : _docKey(docKey),
+        : _docKey(std::move(docKey)),
           _pid(pid),
-          _filename(filename),
+          _filename(std::move(filename)),
           _start(std::time(nullptr))
     {
         Log::info("Document " + _docKey + " ctor.");
diff --git a/loolwsd/Storage.cpp b/loolwsd/Storage.cpp
index 0b8bfda..d93a743 100644
--- a/loolwsd/Storage.cpp
+++ b/loolwsd/Storage.cpp
@@ -386,7 +386,7 @@ StorageBase::FileInfo WebDAVStorage::getFileInfo(const Poco::URI& uri)
 {
     Log::debug("Getting info for webdav uri [" + uri.toString() + "].");
     (void)uri;
-    assert(!"Not Implemented!");
+    assert(false && "Not Implemented!");
     return FileInfo({"bazinga", Poco::Timestamp(), 0});
 }
 


More information about the Libreoffice-commits mailing list