Allow ObjectPath and Signature be created from std::string
This commit is contained in:
1 parent
84b15776a3
commit
b813680192
2 files changed
+34
No files matched your search
@@ -140,6 +140,9 @@ namespace sdbus {
|
||||
public:
|
||||
using std::string::string;
|
||||
using std::string::operator=;
|
||||
ObjectPath(std::string path)
|
||||
: std::string(std::move(path))
|
||||
{}
|
||||
};
|
||||
|
||||
class Signature : public std::string
|
||||
@@ -147,6 +150,9 @@ namespace sdbus {
|
||||
public:
|
||||
using std::string::string;
|
||||
using std::string::operator=;
|
||||
Signature(std::string path)
|
||||
: std::string(std::move(path))
|
||||
{}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user