diff options
Diffstat (limited to 'libnos/NuggetClient.cpp')
-rw-r--r-- | libnos/NuggetClient.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnos/NuggetClient.cpp b/libnos/NuggetClient.cpp index f775756..3f4682d 100644 --- a/libnos/NuggetClient.cpp +++ b/libnos/NuggetClient.cpp @@ -32,6 +32,9 @@ NuggetClient::NuggetClient(const std::string& device_name) : device_name_(device_name), open_(false) { } +NuggetClient::NuggetClient(const char* device_name) + : device_name_(device_name ? device_name : ""), open_(false) {} + NuggetClient::~NuggetClient() { Close(); } |