Skip to content

Commit

Permalink
Remove Mudlet:: namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Oct 16, 2020
1 parent 3dcb2e6 commit a2a06fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/TLuaInterpreter.cpp
Expand Up @@ -11779,7 +11779,7 @@ int TLuaInterpreter::openWebPage(lua_State* L)
{
if (lua_isstring(L, 1)) {
QString url = lua_tostring(L, 1);
lua_pushboolean(L, Mudlet::openWebPage(url));
lua_pushboolean(L, mudlet::self()->openWebPage(url));
return 1;
} else {
lua_pushfstring(L, "openWebPage: bad argument #%d (string expected, got %s)", 1, luaL_typename(L, 1));
Expand Down
4 changes: 1 addition & 3 deletions src/mudlet.cpp
Expand Up @@ -76,8 +76,6 @@
#include <zip.h>
#include "post_guard.h"

using namespace Mudlet;

bool TConsoleMonitor::eventFilter(QObject* obj, QEvent* event)
{
if (event->type() == QEvent::Close) {
Expand Down Expand Up @@ -1278,7 +1276,7 @@ void mudlet::slot_module_manager()
mpModuleDlg->show();
}

bool Mudlet::openWebPage(const QString& path)
bool mudlet::openWebPage(const QString& path)
{
if (path.isEmpty() || path.isNull()) {
return false;
Expand Down
5 changes: 1 addition & 4 deletions src/mudlet.h
Expand Up @@ -111,10 +111,6 @@ class dlgProfilePreferences;

class translation;

namespace Mudlet {
bool openWebPage(const QString& path);
};

class mudlet : public QMainWindow, public Ui::main_window
{
Q_OBJECT
Expand Down Expand Up @@ -191,6 +187,7 @@ class mudlet : public QMainWindow, public Ui::main_window
#endif
void activateProfile(Host*);

bool openWebPage(const QString& path);

// used by developers in everyday coding
static const bool scmIsDevelopmentVersion;
Expand Down

0 comments on commit a2a06fe

Please sign in to comment.