forked from Kistler-Group/sdbus-cpp
refactor: improve and make more efficient some Message API (#432)
This commit is contained in:
+2
-4
@@ -55,12 +55,10 @@ void Variant::deserializeFrom(Message& msg)
|
||||
msg_.seal();
|
||||
}
|
||||
|
||||
std::string Variant::peekValueType() const
|
||||
const char* Variant::peekValueType() const
|
||||
{
|
||||
msg_.rewind(false);
|
||||
std::string type;
|
||||
std::string contents;
|
||||
msg_.peekType(type, contents);
|
||||
auto [type, contents] = msg_.peekType();
|
||||
return contents;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user