Files
UnrealEngineUWP/Engine/Source/Developer/DesktopTargetPlatform/Private/DesktopTargetPlatformModule.cpp
Mike Fricker 114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00

58 lines
938 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "DesktopTargetPlatformPrivatePCH.h"
/**
* Holds the target platform singleton.
*/
static ITargetPlatform* Singleton = NULL;
/**
* Module for a generic target platform for desktop platforms
*/
class FDesktopTargetPlatformModule : public ITargetPlatformModule
{
public:
/**
* Destructor.
*/
~FDesktopTargetPlatformModule()
{
Singleton = NULL;
}
public:
// Begin ITargetPlatformModule interface
virtual ITargetPlatform* GetTargetPlatform() override
{
if (Singleton == NULL)
{
Singleton = new FDesktopTargetPlatform();
}
return Singleton;
}
// End ITargetPlatformModule interface
public:
// Begin IModuleInterface interface
virtual void StartupModule() override
{
}
virtual void ShutdownModule() override
{
}
// End IModuleInterface interface
};
IMPLEMENT_MODULE( FDesktopTargetPlatformModule, DesktopTargetPlatform);