[Libreoffice-commits] online.git: Branch 'libreoffice-5-4' - wsd/Storage.cpp

Aditya Dewan iit2015097 at iiita.ac.in
Wed Jan 31 09:59:54 UTC 2018


 wsd/Storage.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9516a78381fbed4ac06f95a2618967d214413859
Author: Aditya Dewan <iit2015097 at iiita.ac.in>
Date:   Sun Jul 2 02:00:14 2017 +0530

    Assign unique editorId to localhost users
    
    Change-Id: I1c8949fa7acca1b11b35b48629cc20a1170d8caa
    Reviewed-on: https://gerrit.libreoffice.org/39442
    Reviewed-by: pranavk <pranavk at collabora.co.uk>
    Tested-by: pranavk <pranavk at collabora.co.uk>
    (cherry picked from commit c29815f42c8907803960e47de5652602c5955a1d)
    Reviewed-on: https://gerrit.libreoffice.org/48963

diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index a1ed35ef..f3bbce3c 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -228,7 +228,7 @@ std::unique_ptr<LocalStorage::LocalFileInfo> LocalStorage::getLocalFileInfo()
     _fileInfo = FileInfo({filename, "localhost", lastModified, size});
 
     // Set automatic userid and username
-    return std::unique_ptr<LocalStorage::LocalFileInfo>(new LocalFileInfo({"localhost", std::string("Local Host #") + std::to_string(LastLocalStorageId++)}));
+    return std::unique_ptr<LocalStorage::LocalFileInfo>(new LocalFileInfo({"localhost" + std::to_string(LastLocalStorageId), "Local Host #" + std::to_string(LastLocalStorageId++)}));
 }
 
 std::string LocalStorage::loadStorageFileToLocal(const std::string& /*accessToken*/)


More information about the Libreoffice-commits mailing list