mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Remove use of 'using namespace' from headers
This commit is contained in:
committed by
Michał Janiszewski
parent
3b7864957a
commit
aa7fb35839
@@ -26,8 +26,6 @@
|
||||
#include "../windows/Intent.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct BannerSetNameAction : public GameActionBase<GAME_COMMAND_SET_BANNER_NAME, GameActionResult>
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "../world/Park.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct ParkMarketingAction : public GameActionBase<GAME_COMMAND_START_MARKETING_CAMPAIGN, GameActionResult>
|
||||
{
|
||||
private:
|
||||
@@ -78,7 +76,7 @@ public:
|
||||
gMarketingCampaignRideIndex[_type] = _item;
|
||||
|
||||
// We are only interested in invalidating the finances (marketing) window
|
||||
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto windowManager = OpenRCT2::GetContext()->GetUiContext()->GetWindowManager();
|
||||
windowManager->BroadcastIntent(Intent(INTENT_ACTION_UPDATE_CASH));
|
||||
|
||||
return CreateResult();
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "../windows/Intent.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct ParkSetLoanAction : public GameActionBase<GAME_COMMAND_SET_CURRENT_LOAN, GameActionResult>
|
||||
{
|
||||
private:
|
||||
@@ -76,7 +74,7 @@ public:
|
||||
gCash -= (gBankLoan - _value);
|
||||
gBankLoan = _value;
|
||||
|
||||
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto windowManager = OpenRCT2::GetContext()->GetUiContext()->GetWindowManager();
|
||||
windowManager->BroadcastIntent(Intent(INTENT_ACTION_UPDATE_CASH));
|
||||
return MakeResult();
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
#include "../world/Park.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct ParkSetNameAction : public GameActionBase<GAME_COMMAND_SET_PARK_NAME, GameActionResult>
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "../windows/Intent.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct ParkSetResearchFundingAction : public GameActionBase<GAME_COMMAND_SET_RESEARCH_FUNDING, GameActionResult>
|
||||
{
|
||||
private:
|
||||
@@ -67,7 +65,7 @@ public:
|
||||
gResearchPriorities = _priorities;
|
||||
gResearchFundingLevel = _fundingAmount;
|
||||
|
||||
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto windowManager = OpenRCT2::GetContext()->GetUiContext()->GetWindowManager();
|
||||
windowManager->BroadcastIntent(Intent(INTENT_ACTION_UPDATE_RESEARCH));
|
||||
return MakeResult();
|
||||
}
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
#include "../world/Park.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct RideSetNameAction : public GameActionBase<GAME_COMMAND_SET_RIDE_NAME, GameActionResult>
|
||||
{
|
||||
private:
|
||||
@@ -97,7 +95,7 @@ public:
|
||||
gfx_invalidate_screen();
|
||||
|
||||
// Refresh windows that display ride name
|
||||
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto windowManager = OpenRCT2::GetContext()->GetUiContext()->GetWindowManager();
|
||||
windowManager->BroadcastIntent(Intent(INTENT_ACTION_REFRESH_RIDE_LIST));
|
||||
windowManager->BroadcastIntent(Intent(INTENT_ACTION_REFRESH_GUEST_LIST));
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
#include "../world/Banner.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct SignSetNameAction : public GameActionBase<GAME_COMMAND_SET_SIGN_NAME, GameActionResult>
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
#include "../world/Sprite.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
struct StaffSetColourAction : public GameActionBase<GAME_COMMAND_SET_STAFF_COLOUR, GameActionResult>
|
||||
{
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user