libreoffice-online/common
Miklos Vajna 11897f2db7 Introduce Util::make_unique()
In the old code, if the evaluation first allocates the memory for the
raw pointer, then calls firstLine() and an exception is thrown before
the std::unique_ptr construction, then the memory is leaked. Using
make_unique() has the benefit of avoiding this problem.

Convert only a single usage, so the remaining places can be done as easy
hacks.

Change-Id: Iaf3d8051a8a0627a57fdf1196bde7d5f8612fcff
2020-10-08 09:53:37 +02:00
..
Authorization.cpp wsd: allow URIs without access_header or access_token 2020-10-07 08:13:29 -04:00
Authorization.hpp fix license headers 2020-10-01 11:56:43 +02:00
Clipboard.hpp fix license headers 2020-10-01 11:56:43 +02:00
Common.hpp fix license headers 2020-10-01 11:56:43 +02:00
Crypto.cpp fix license headers 2020-10-01 11:56:43 +02:00
Crypto.hpp fix license headers 2020-10-01 11:56:43 +02:00
FileUtil.cpp fix license headers 2020-10-01 11:56:43 +02:00
FileUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
JailUtil.cpp fix license headers 2020-10-01 11:56:43 +02:00
JailUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
JsonUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
Log.cpp fix license headers 2020-10-01 11:56:43 +02:00
Log.hpp fix license headers 2020-10-01 11:56:43 +02:00
LOOLWebSocket.hpp fix license headers 2020-10-01 11:56:43 +02:00
Message.hpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.cpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.hpp fix license headers 2020-10-01 11:56:43 +02:00
MobileApp.cpp fix license headers 2020-10-01 11:56:43 +02:00
MobileApp.hpp fix license headers 2020-10-01 11:56:43 +02:00
Png.hpp fix license headers 2020-10-01 11:56:43 +02:00
Protocol.cpp fix license headers 2020-10-01 11:56:43 +02:00
Protocol.hpp fix license headers 2020-10-01 11:56:43 +02:00
Rectangle.hpp fix license headers 2020-10-01 11:56:43 +02:00
RenderTiles.hpp fix license headers 2020-10-01 11:56:43 +02:00
Seccomp.cpp fix license headers 2020-10-01 11:56:43 +02:00
Seccomp.hpp fix license headers 2020-10-01 11:56:43 +02:00
security.h fix license headers 2020-10-01 11:56:43 +02:00
Session.cpp fix license headers 2020-10-01 11:56:43 +02:00
Session.hpp fix license headers 2020-10-01 11:56:43 +02:00
SigUtil.cpp fix license headers 2020-10-01 11:56:43 +02:00
SigUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
SpookyV2.cpp
SpookyV2.h Use #pragma once 2020-04-18 15:00:18 +02:00
StringVector.cpp fix license headers 2020-10-01 11:56:43 +02:00
StringVector.hpp Fix typos 2020-10-07 12:51:08 +02:00
Unit.cpp fix license headers 2020-10-01 11:56:43 +02:00
Unit.hpp fix license headers 2020-10-01 11:56:43 +02:00
UnitHTTP.hpp fix license headers 2020-10-01 11:56:43 +02:00
Util.cpp Removed duplicated include 2020-10-07 12:48:04 +02:00
Util.hpp Introduce Util::make_unique() 2020-10-08 09:53:37 +02:00