mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
Move the qtTranslator and ssrfTranslator pointers to qt-init.cpp
No point in having it defined in each main program's .cpp. Especially since the unit tests don't define them. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
744e596883
commit
8f35b7324e
4 changed files with 2 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "helpers.h"
|
||||
|
||||
char *settings_suffix = NULL;
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
void init_qt_late()
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <QDebug>
|
||||
|
||||
#include "qt-gui.h"
|
||||
#include "qthelper.h"
|
||||
#include "dive.h"
|
||||
#include "save-html.h"
|
||||
#include "stdio.h"
|
||||
|
@ -14,8 +15,6 @@
|
|||
#include "windowtitleupdate.h"
|
||||
#include "statistics.h"
|
||||
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication *application = new QApplication(argc, argv);
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
#include <QLoggingCategory>
|
||||
#include <git2.h>
|
||||
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
static bool filesOnCommandLine = false;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
#include <QLoggingCategory>
|
||||
#include <git2.h>
|
||||
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue