aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/models/profile_model.cpp4
-rw-r--r--ui/qt/utils/wireshark_zip_helper.cpp8
-rw-r--r--ui/qt/utils/wireshark_zip_helper.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/ui/qt/models/profile_model.cpp b/ui/qt/models/profile_model.cpp
index 337668c5ea..1e40afa23b 100644
--- a/ui/qt/models/profile_model.cpp
+++ b/ui/qt/models/profile_model.cpp
@@ -1076,7 +1076,7 @@ bool ProfileModel::exportProfiles(QString filename, QModelIndexList items, QStri
return false;
}
- if (WireSharkZipHelper::zip(filename, files, gchar_free_to_qstring(get_profiles_dir()) + QDir::separator()) )
+ if (WiresharkZipHelper::zip(filename, files, gchar_free_to_qstring(get_profiles_dir()) + QDir::separator()) )
return true;
return false;
@@ -1113,7 +1113,7 @@ int ProfileModel::importProfilesFromZip(QString filename, int * skippedCnt, QStr
int cnt = 0;
if (dir.isValid())
{
- WireSharkZipHelper::unzip(filename, dir.path(), &ProfileModel::acceptFile, &ProfileModel::cleanName);
+ WiresharkZipHelper::unzip(filename, dir.path(), &ProfileModel::acceptFile, &ProfileModel::cleanName);
cnt = importProfilesFromDir(dir.path(), skippedCnt, true, result);
}
diff --git a/ui/qt/utils/wireshark_zip_helper.cpp b/ui/qt/utils/wireshark_zip_helper.cpp
index a32204d820..c6b49efc89 100644
--- a/ui/qt/utils/wireshark_zip_helper.cpp
+++ b/ui/qt/utils/wireshark_zip_helper.cpp
@@ -32,7 +32,7 @@
#include <QDateTime>
#include <QMap>
-bool WireSharkZipHelper::unzip(QString zipFile, QString directory, bool (*fileCheck)(QString, int), QString (*cleanName)(QString))
+bool WiresharkZipHelper::unzip(QString zipFile, QString directory, bool (*fileCheck)(QString, int), QString (*cleanName)(QString))
{
unzFile uf = Q_NULLPTR;
QFileInfo fi(zipFile);
@@ -176,7 +176,7 @@ unsigned long qDateToDosDate(QDateTime time)
return dosDate << 16 | dosTime;
}
-void WireSharkZipHelper::addFileToZip(zipFile zf, QString filepath, QString fileInZip)
+void WiresharkZipHelper::addFileToZip(zipFile zf, QString filepath, QString fileInZip)
{
QFileInfo fi(filepath);
zip_fileinfo zi;
@@ -217,7 +217,7 @@ void WireSharkZipHelper::addFileToZip(zipFile zf, QString filepath, QString file
zipCloseFileInZip(zf);
}
-bool WireSharkZipHelper::zip(QString fileName, QStringList files, QString relativeTo)
+bool WiresharkZipHelper::zip(QString fileName, QStringList files, QString relativeTo)
{
QFileInfo fi(fileName);
@@ -237,7 +237,7 @@ bool WireSharkZipHelper::zip(QString fileName, QStringList files, QString relati
while (fileInZip.length() > 0 && fileInZip.startsWith(QDir::separator()))
fileInZip = fileInZip.right(fileInZip.length() - 1);
- WireSharkZipHelper::addFileToZip(zf, sf.absoluteFilePath(), fileInZip);
+ WiresharkZipHelper::addFileToZip(zf, sf.absoluteFilePath(), fileInZip);
}
diff --git a/ui/qt/utils/wireshark_zip_helper.h b/ui/qt/utils/wireshark_zip_helper.h
index 57e8751e16..54960ef7da 100644
--- a/ui/qt/utils/wireshark_zip_helper.h
+++ b/ui/qt/utils/wireshark_zip_helper.h
@@ -20,7 +20,7 @@
#include "minizip/zip.h"
-class WireSharkZipHelper
+class WiresharkZipHelper
{
public:
static bool zip(QString zipFile, QStringList files, QString relativeTo = QString());