Move application strings into separate namespace

Them being in the overlay controller required them to be static, which
forces the compiler to give them a memory location at compile time. They
also don't really fit into the overlaycontroller.
This commit is contained in:
Vasily
2019-03-11 11:24:57 +01:00
parent cab99041be
commit 5b9e94869c
8 changed files with 30 additions and 34 deletions
@@ -259,8 +259,8 @@ QString getBatteryIconPath( int batteryState )
vr::VROverlayHandle_t createBatteryOverlay( vr::TrackedDeviceIndex_t index )
{
vr::VROverlayHandle_t handle = vr::k_ulOverlayHandleInvalid;
std::string batteryKey = std::string( OverlayController::applicationKey )
+ ".battery." + std::to_string( index );
std::string batteryKey = std::string( application_strings::applicationKey ) + ".battery."
+ std::to_string( index );
vr::VROverlayError overlayError = vr::VROverlay()->CreateOverlay(
batteryKey.c_str(), batteryKey.c_str(), &handle );
if ( overlayError == vr::VROverlayError_None )