2
0
forked from Ivasoft/DSView

update: rename namespace

This commit is contained in:
dreamsourcelabTAI
2022-06-27 16:03:19 +08:00
parent 8109950a3a
commit f5ec938ddb
4 changed files with 15 additions and 8 deletions

View File

@@ -28,8 +28,9 @@
#include <QTextCodec>
#endif
namespace pv::encoding
{
namespace pv{
namespace encoding{
void set_utf8(QTextStream &stream)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
@@ -39,4 +40,5 @@ namespace pv::encoding
stream.setCodec(code);
#endif
}
}
}

View File

@@ -24,9 +24,11 @@
class QTextStream;
namespace pv::encoding
{
namespace pv{
namespace encoding{
void set_utf8(QTextStream &stream);
}
}
#endif

View File

@@ -21,8 +21,9 @@
#include "path.h"
namespace pv::path
{
namespace pv{
namespace path{
std::string ConvertPath(QString fileName)
{
return fileName.toUtf8().toStdString();
@@ -37,4 +38,5 @@ namespace pv::path
}
return path;
}
}
}

View File

@@ -25,11 +25,12 @@
#include <string>
#include <QString>
namespace pv::path
{
namespace pv{
namespace path{
std::string ConvertPath(QString fileName);
QString GetDirectoryName(QString path);
}
}
#endif