summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-05 00:20:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-05 00:20:47 +0200
commit2061af6ad4af8416b8f11c2b2fd1802dade0e3e9 (patch)
tree5391637ba3f9226c3099e99c5d3535fe8c628e45 /facetracknoir/facetracknoir.cpp
parent30fe442f524e91639e9d5f27d86c2edf290ab9c0 (diff)
Deal correctly with non-latin1 characters in directory name
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index aa072401..bb0cef11 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -1022,8 +1022,7 @@ void FaceTrackNoIR::createIconGroupBox()
QIcon icon;
QString longName;
QString str = protocols.at(i);
- QByteArray latin1 = str.toLatin1();
- DynamicLibrary* lib = new DynamicLibrary(latin1.constData());
+ DynamicLibrary* lib = new DynamicLibrary(str);
qDebug() << "Loading" << str;
std::cout.flush();
Metadata* meta;
@@ -1047,8 +1046,7 @@ void FaceTrackNoIR::createIconGroupBox()
QIcon icon;
QString longName;
QString str = trackers.at(i);
- QByteArray latin1 = str.toLatin1();
- DynamicLibrary* lib = new DynamicLibrary(latin1.constData());
+ DynamicLibrary* lib = new DynamicLibrary(str);
qDebug() << "Loading" << str;
std::cout.flush();
Metadata* meta;
@@ -1074,8 +1072,7 @@ void FaceTrackNoIR::createIconGroupBox()
QIcon icon;
QString fullName;
QString str = filters.at(i);
- QByteArray latin1 = str.toLatin1();
- DynamicLibrary* lib = new DynamicLibrary(latin1.constData());
+ DynamicLibrary* lib = new DynamicLibrary(str);
qDebug() << "Loading" << str;
std::cout.flush();
Metadata* meta;