forked from openkylin/ukui-search
解决一些编译警告
This commit is contained in:
parent
d5b5cac8dd
commit
040d33c5ec
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*
|
||||
*/
|
||||
#include "mail-search-plugin.h"
|
||||
#include <QDebug>
|
||||
#include "file-utils.h"
|
||||
#include "chinese-segmentation.h"
|
||||
using namespace UkuiSearch;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
//Qt
|
||||
#include <QIcon>
|
||||
#include <QDebug>
|
||||
#include <QDateTime>
|
||||
|
||||
using namespace UkuiSearch;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <QDBusReply>
|
||||
#include <QDBusArgument>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include "settings-search-plugin.h"
|
||||
#include "file-utils.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <QDBusReply>
|
||||
#include <QDesktopServices>
|
||||
#include <QDebug>
|
||||
#include "web-search-plugin.h"
|
||||
#include "global-settings.h"
|
||||
#define WEB_ENGINE_KEY "webEngine"
|
||||
|
|
Loading…
Reference in New Issue