diff options
| author | Tannin <Tannin@Miranda> | 2013-02-17 09:26:29 +0100 |
|---|---|---|
| committer | Tannin <Tannin@Miranda> | 2013-02-17 09:26:29 +0100 |
| commit | 6516a6b7c19713de28db7142612f1c095e541317 (patch) | |
| tree | 06829bf7f82e1251a9e3db27185b7df90833bbc8 /src/nxmurl.cpp | |
| parent | 5d1154c24e2475ed2b7ac248de27ab7b501a1e5e (diff) | |
- moved shared and uibase libraries to namespaces
- bugfix: the "fix mods" function was accessing the save game data incorrectly, causing a crash
Diffstat (limited to 'src/nxmurl.cpp')
| -rw-r--r-- | src/nxmurl.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/nxmurl.cpp b/src/nxmurl.cpp index 53eb369c..003b3c58 100644 --- a/src/nxmurl.cpp +++ b/src/nxmurl.cpp @@ -17,18 +17,18 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. */ -#include "nxmurl.h"
-#include <utility.h>
-#include <QRegExp>
-#include <QStringList>
-
-NXMUrl::NXMUrl(const QString &url)
-{
- QRegExp exp("nxm://([a-z]+)/mods/(\\d+)/files/(\\d+)", Qt::CaseInsensitive);
- exp.indexIn(url);
- if (exp.captureCount() != 3) {
- throw MyException(tr("invalid nxm-link: %1").arg(url));
- }
- m_ModId = exp.cap(2).toInt();
- m_FileId = exp.cap(3).toInt();
-}
+#include "nxmurl.h" +#include <utility.h> +#include <QRegExp> +#include <QStringList> + +NXMUrl::NXMUrl(const QString &url) +{ + QRegExp exp("nxm://([a-z]+)/mods/(\\d+)/files/(\\d+)", Qt::CaseInsensitive); + exp.indexIn(url); + if (exp.captureCount() != 3) { + throw MOBase::MyException(tr("invalid nxm-link: %1").arg(url)); + } + m_ModId = exp.cap(2).toInt(); + m_FileId = exp.cap(3).toInt(); +} |
