Abstract away InstanceCopyPrefs' internals through new getSelectedFiltersAsRegex() function

+ fix typo in comment
+ remove unused import
+ add [[nodiscard]] to methods

Signed-off-by: Marcelo Hernandez <marcelohdez.inq@gmail.com>
This commit is contained in:
Marcelo Hernandez
2022-10-26 00:20:36 -04:00
parent 385c452ddf
commit 63b6c6685c
5 changed files with 45 additions and 60 deletions

View File

@ -24,10 +24,6 @@ protected:
void copyAborted();
private:
// Helper functions to avoid repeating code
static void appendToFilter(QString &filter, const QString &append);
void resetFromMatcher(const QString &regexp);
/* data */
InstancePtr m_origInstance;
QFuture<bool> m_copyFuture;