解决一些编译警告

This commit is contained in:
iaom 2023-04-19 15:14:36 +08:00
parent b172baca45
commit 543b766351
8 changed files with 22 additions and 2 deletions

View File

@ -311,7 +311,7 @@ void FileSystemWatcher::eventProcess(int socket)
}
if (event->mask & EventModify) {
// qDebug() << path << "--EventModify";
if(!event->mask & IN_ISDIR) {
if(!(event->mask & IN_ISDIR)) {
Q_EMIT modified(path);
}
}

View File

@ -18,6 +18,7 @@
*
*/
#include "mail-search-plugin.h"
#include <QDebug>
#include "file-utils.h"
#include "chinese-segmentation.h"
using namespace UkuiSearch;

View File

@ -21,6 +21,7 @@
#include <QWidget>
#include <QLabel>
#include <qt5xdg/xdgicon.h>
#include <QDebug>
#include "file-utils.h"
#include "chinese-segmentation.h"
using namespace UkuiSearch;

View File

@ -76,3 +76,15 @@ ResultItem::~ResultItem()
ResultItem::ResultItem(const ResultItem &item): d(new ResultItemPrivate(*item.d))
{
}
ResultItem &ResultItem::operator=(const ResultItem &other)
{
*d = *other.d;
return *this;
}
ResultItem &ResultItem::operator=(ResultItem &&other) Q_DECL_NOEXCEPT
{
d = other.d;
other.d = nullptr;
return *this;
}

View File

@ -30,10 +30,13 @@ public:
explicit ResultItem();
virtual ~ResultItem();
ResultItem(const ResultItem &item);
explicit ResultItem(const size_t searchId);
explicit ResultItem(const QString &itemKey);
ResultItem(const size_t searchId, const QString &itemKey, const SearchResultPropertyMap &map);
ResultItem(const ResultItem &item);
ResultItem &operator=(const ResultItem &other);
ResultItem &operator=(ResultItem &&other) Q_DECL_NOEXCEPT;
void setSearchId(const size_t searchId);
void setItemKey(const QString &itemKey);
size_t getSearchId() const;

View File

@ -29,6 +29,7 @@
//Qt
#include <QIcon>
#include <QDebug>
#include <QDateTime>
using namespace UkuiSearch;

View File

@ -5,6 +5,7 @@
#include <QDBusReply>
#include <QDBusArgument>
#include <QFile>
#include <QDebug>
#include "settings-search-plugin.h"
#include "file-utils.h"

View File

@ -1,5 +1,6 @@
#include <QDBusReply>
#include <QDesktopServices>
#include <QDebug>
#include "web-search-plugin.h"
#include "global-settings.h"
#define WEB_ENGINE_KEY "webEngine"