29 lines
702 B
Diff
29 lines
702 B
Diff
--- a/plugins/metadata/common/KisExiv2IODevice.cpp
|
|
+++ b/plugins/metadata/common/KisExiv2IODevice.cpp
|
|
@@ -272,6 +272,13 @@
|
|
return filePathQString().toStdString();
|
|
}
|
|
|
|
+#ifdef EXV_UNICODE_PATH
|
|
+std::wstring KisExiv2IODevice::wpath() const
|
|
+{
|
|
+ return filePathQString().toStdWString();
|
|
+}
|
|
+#endif
|
|
+
|
|
bool KisExiv2IODevice::open(QFile::OpenMode mode)
|
|
{
|
|
if (m_file.isOpen()) {
|
|
--- a/plugins/metadata/common/KisExiv2IODevice.h
|
|
+++ b/plugins/metadata/common/KisExiv2IODevice.h
|
|
@@ -68,6 +68,9 @@
|
|
const std::string& path() const noexcept override;
|
|
#else
|
|
std::string path() const override;
|
|
+#ifdef EXV_UNICODE_PATH
|
|
+ std::wstring wpath() const override;
|
|
+#endif
|
|
#endif
|
|
|
|
private:
|