summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/ui.cpp4
-rw-r--r--opentrack/version.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index fd20084d..d0a5e93c 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -216,7 +216,7 @@ void MainWindow::open_config_directory()
}
}
-extern "C" volatile const char* opentrack_version;
+extern "C" const char* opentrack_version;
void MainWindow::refresh_config_list()
{
@@ -379,7 +379,7 @@ void MainWindow::set_title(const QString& game_title_)
if (game_title_ != "")
game_title = " :: " + game_title_;
QString current = group::ini_filename();
- setWindowTitle(const_cast<const char*>(opentrack_version) + QStringLiteral(" :: ") + current + game_title);
+ setWindowTitle(opentrack_version + QStringLiteral(" :: ") + current + game_title);
}
void MainWindow::showHeadPose()
diff --git a/opentrack/version.cc b/opentrack/version.cc
index 13bc5dc5..9e75a336 100644
--- a/opentrack/version.cc
+++ b/opentrack/version.cc
@@ -4,6 +4,6 @@
extern "C"
#endif
OPENTRACK_EXPORT
-volatile const char* opentrack_version;
+const char* opentrack_version;
-volatile const char* opentrack_version = OPENTRACK_VERSION;
+const char* opentrack_version = OPENTRACK_VERSION;