diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-28 13:50:43 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:15 +0100 |
| commit | 4636d7bd5d092ff47146248232cd73c8d0254d7a (patch) | |
| tree | 2b24e8f0847a0fd18c98646ea1aea4e9e994bb91 /src/modlist.h | |
| parent | addb38645b41507ae8e0536bb83d3b99d365f664 (diff) | |
Small refactoring to avoid duplicated code.
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modlist.h b/src/modlist.h index b2eb6be6..eebb1105 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -372,12 +372,12 @@ private: // retrieve the relative path of file and its origin given a URL from Mime data
// returns an empty optional if the URL is not a valid file for dropping
//
- std::optional<std::pair<QString, QString>> relativeUrl(const QUrl&) const;
+ static std::optional<std::pair<QString, QString>> relativeUrl(const QUrl&);
// return the source rows from the given mime data for drag&drop of mods or
// installation archives
//
- std::vector<int> sourceRows(const QMimeData* mimeData) const;
+ static std::vector<int> sourceRows(const QMimeData* mimeData);
bool dropURLs(const QMimeData* mimeData, int row, const QModelIndex& parent);
bool dropMod(const QMimeData* mimeData, int row, const QModelIndex& parent);
|
