From 46dccbdb643d2dfb5a5c06782e04b084d5bc36ee Mon Sep 17 00:00:00 2001 From: vboxsync Date: Thu, 30 Aug 2018 12:13:02 +0000 Subject: IPRT/rest: More request array and map setter methods. Fixed string defaults. Safer copying and resetToDefaults. bugref:9167 git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@73977 cfe28804-0f27-0410-a406-dd0f0b0b656f --- src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp') diff --git a/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp b/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp index 5a486ba2d3c..91780280941 100644 --- a/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp +++ b/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp @@ -28,6 +28,7 @@ /********************************************************************************************************************************* * Header Files * *********************************************************************************************************************************/ +#define LOG_GROUP RTLOGGROUP_REST #include #include @@ -71,10 +72,11 @@ RTCRestStringMapBase &RTCRestStringMapBase::operator=(RTCRestStringMapBase const * Overridden base object methods * *********************************************************************************************************************************/ -void RTCRestStringMapBase::resetToDefault() +int RTCRestStringMapBase::resetToDefault() { /* Default is an empty map. */ clear(); + return VINF_SUCCESS; } -- cgit v1.2.1