From e8b378da75b2380dbc2f1f1757c4204e83b0c2a8 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 28 Dec 2018 12:14:56 -0500 Subject: [PATCH] fix whitespace --- GUI/extenwindow.cpp | 10 +++++----- GUI/host/host.cpp | 6 +++--- GUI/host/util.h | 2 +- GUI/mainwindow.cpp | 2 +- GUI/mainwindow.h | 1 - 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/GUI/extenwindow.cpp b/GUI/extenwindow.cpp index bea793e..156a9a8 100644 --- a/GUI/extenwindow.cpp +++ b/GUI/extenwindow.cpp @@ -117,8 +117,8 @@ void ExtenWindow::Add(QFileInfo extenFile) Sync(); } -bool ExtenWindow::eventFilter(QObject* target, QEvent* event) -{ +bool ExtenWindow::eventFilter(QObject* target, QEvent* event) +{ // See https://stackoverflow.com/questions/1224432/how-do-i-respond-to-an-internal-drag-and-drop-operation-using-a-qlistwidget/1528215 if (event->type() == QEvent::ChildRemoved) { @@ -127,7 +127,7 @@ bool ExtenWindow::eventFilter(QObject* target, QEvent* event) Reorder(extenNames); Sync(); } - return false; + return false; } void ExtenWindow::keyPressEvent(QKeyEvent* event) @@ -144,7 +144,7 @@ void ExtenWindow::dragEnterEvent(QDragEnterEvent* event) event->acceptProposedAction(); } -void ExtenWindow::dropEvent(QDropEvent* event) -{ +void ExtenWindow::dropEvent(QDropEvent* event) +{ for (auto file : event->mimeData()->urls()) Add(file.toLocalFile()); } diff --git a/GUI/host/host.cpp b/GUI/host/host.cpp index 5bc3f34..0b42d3e 100644 --- a/GUI/host/host.cpp +++ b/GUI/host/host.cpp @@ -204,8 +204,8 @@ namespace Host return textThreadsByParams->at(tp); } - void AddConsoleOutput(std::wstring text) - { - GetThread(CONSOLE)->PushSentence(text); + void AddConsoleOutput(std::wstring text) + { + GetThread(CONSOLE)->PushSentence(text); } } diff --git a/GUI/host/util.h b/GUI/host/util.h index 1fd9a68..46ff6af 100644 --- a/GUI/host/util.h +++ b/GUI/host/util.h @@ -9,5 +9,5 @@ namespace Util std::optional GetClipboardText(); std::optional StringToWideString(std::string text, UINT encoding = CP_UTF8); // return true if repetition found (see https://github.com/Artikash/Textractor/issues/40) - bool RemoveRepetition(std::wstring& text); + bool RemoveRepetition(std::wstring& text); } diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 5399f05..a523c4f 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -172,7 +172,7 @@ DWORD MainWindow::GetSelectedProcessId() std::unordered_map MainWindow::GetMiscInfo(TextThread* thread) { - return + return { { "current select", ui->ttCombo->currentText().startsWith(TextThreadString(thread)) }, { "text number", thread->handle }, diff --git a/GUI/mainwindow.h b/GUI/mainwindow.h index 242fbb3..00f42f4 100644 --- a/GUI/mainwindow.h +++ b/GUI/mainwindow.h @@ -14,7 +14,6 @@ public: explicit MainWindow(QWidget *parent = nullptr); ~MainWindow(); - private: void closeEvent(QCloseEvent*) override; void ProcessConnected(DWORD processId);