mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
code cleanup: translators are not global
Un-globalize unused global variables. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
3d02edf61e
commit
65caddb294
2 changed files with 1 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
#include "core/subsurface-qt/SettingsObjectWrapper.h"
|
||||
|
||||
char *settings_suffix = NULL;
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
static QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
void init_qt_late()
|
||||
{
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
#include <QTranslator>
|
||||
#include <QDir>
|
||||
|
||||
// global pointers for our translation
|
||||
extern QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
QString weight_string(int weight_in_grams);
|
||||
QString distance_string(int distanceInMeters);
|
||||
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue