aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2019-01-13 12:05:28 +0100
committerRobin Krahl <me@robin-krahl.de>2019-01-13 13:27:31 +0100
commita80378e0c770a503ddaafc0c7aacb78cac667b8f (patch)
tree447e63e584b111f7271e55c64427edc126c57ec2 /libnitrokey
parent2c79c15dc9aa4ec7eca454b793bf43a9a3ba85db (diff)
downloadlibnitrokey-a80378e0c770a503ddaafc0c7aacb78cac667b8f.tar.gz
libnitrokey-a80378e0c770a503ddaafc0c7aacb78cac667b8f.tar.bz2
Change std::wstring to std::string in DeviceInfo
For easier handling, we should use a std::string instead of std::wstring for the serial number in DeviceInfo. For the conversion, I assume that the serial number is valid UTF-8. As it should be alphanumeric and ASCII only, this should be true.
Diffstat (limited to 'libnitrokey')
-rw-r--r--libnitrokey/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h
index 4b1c239..d50080d 100644
--- a/libnitrokey/device.h
+++ b/libnitrokey/device.h
@@ -92,7 +92,7 @@ struct DeviceInfo {
/**
* The serial number of the device.
*/
- std::wstring m_serialNumber;
+ std::string m_serialNumber;
};
#include <atomic>