forked from 0ad/0ad
Makes some classes NONCOPYABLE, based on patch by Markus, refs #1852
This was SVN commit r13419.
This commit is contained in:
parent
d7dcd3b26c
commit
94c57085e9
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2012 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -26,6 +26,8 @@ class MD5;
|
||||
|
||||
class CColladaManager
|
||||
{
|
||||
NONCOPYABLE(CColladaManager);
|
||||
|
||||
public:
|
||||
enum FileType { PMD, PSA };
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2011 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -36,6 +36,7 @@ class CMapGeneratorWorker;
|
||||
*/
|
||||
class CMapGenerator
|
||||
{
|
||||
NONCOPYABLE(CMapGenerator);
|
||||
|
||||
public:
|
||||
CMapGenerator();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2010 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -70,6 +70,8 @@ class CTextureManagerImpl;
|
||||
*/
|
||||
class CTextureManager
|
||||
{
|
||||
NONCOPYABLE(CTextureManager);
|
||||
|
||||
public:
|
||||
/**
|
||||
* Construct texture manager. vfs must be the VFS instance used for all textures
|
||||
|
@ -96,6 +96,8 @@ class GUITooltip;
|
||||
*/
|
||||
class CGUI
|
||||
{
|
||||
NONCOPYABLE(CGUI);
|
||||
|
||||
friend class IGUIObject;
|
||||
friend class IGUIScrollBarOwner;
|
||||
friend class CInternalCGUIAccessorBase;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -32,6 +32,8 @@
|
||||
|
||||
class Noise2D
|
||||
{
|
||||
NONCOPYABLE(Noise2D);
|
||||
|
||||
/// Frequency in X and Y
|
||||
int freq;
|
||||
|
||||
@ -47,6 +49,8 @@ public:
|
||||
|
||||
class Noise3D
|
||||
{
|
||||
NONCOPYABLE(Noise3D);
|
||||
|
||||
/// Frequency in X and Y
|
||||
int freq;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -40,6 +40,9 @@ namespace JSI_Vector3D
|
||||
|
||||
struct Vector3D_Info
|
||||
{
|
||||
NONCOPYABLE(Vector3D_Info);
|
||||
public:
|
||||
|
||||
IPropertyOwner* owner;
|
||||
void (IPropertyOwner::*updateFn)();
|
||||
void (IPropertyOwner::*freshenFn)();
|
||||
|
@ -51,6 +51,8 @@ class CTextRenderer;
|
||||
*/
|
||||
class CConsole
|
||||
{
|
||||
NONCOPYABLE(CConsole);
|
||||
|
||||
public:
|
||||
CConsole();
|
||||
~CConsole();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2011 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -40,6 +40,8 @@ class CStrW;
|
||||
|
||||
class CProfileNode
|
||||
{
|
||||
NONCOPYABLE(CProfileNode);
|
||||
|
||||
friend class CProfileManager;
|
||||
friend class CProfileNodeTable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2012 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -34,6 +34,8 @@ struct OverlayRendererInternals;
|
||||
*/
|
||||
class OverlayRenderer
|
||||
{
|
||||
NONCOPYABLE(OverlayRenderer);
|
||||
|
||||
public:
|
||||
OverlayRenderer();
|
||||
~OverlayRenderer();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2011 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -29,6 +29,8 @@ struct ParticleRendererInternals;
|
||||
*/
|
||||
class ParticleRenderer
|
||||
{
|
||||
NONCOPYABLE(ParticleRenderer);
|
||||
|
||||
public:
|
||||
ParticleRenderer();
|
||||
~ParticleRenderer();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2012 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -39,6 +39,8 @@
|
||||
*/
|
||||
class CVertexBuffer
|
||||
{
|
||||
NONCOPYABLE(CVertexBuffer);
|
||||
|
||||
public:
|
||||
|
||||
/// VBChunk: describes a portion of this vertex buffer
|
||||
|
@ -129,6 +129,9 @@ struct trapLocation
|
||||
|
||||
struct ThreadDebugger_impl
|
||||
{
|
||||
NONCOPYABLE(ThreadDebugger_impl);
|
||||
public:
|
||||
|
||||
ThreadDebugger_impl();
|
||||
~ThreadDebugger_impl();
|
||||
|
||||
|
@ -41,6 +41,8 @@ CSoundManager* g_SoundManager = NULL;
|
||||
|
||||
class CSoundManagerWorker
|
||||
{
|
||||
NONCOPYABLE(CSoundManagerWorker);
|
||||
|
||||
public:
|
||||
CSoundManagerWorker()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2012 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -50,6 +50,8 @@ struct ALSourceHolder
|
||||
|
||||
class CSoundManager
|
||||
{
|
||||
NONCOPYABLE(CSoundManager);
|
||||
|
||||
protected:
|
||||
|
||||
ALuint m_ALEnvironment;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2011 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -42,6 +42,10 @@ public:
|
||||
struct ToolManagerImpl;
|
||||
class ToolManager
|
||||
{
|
||||
private: // NONCOPYABLE
|
||||
ToolManager(const ToolManager&);
|
||||
const ToolManager& operator=(const ToolManager&);
|
||||
|
||||
public:
|
||||
ToolManager(ScenarioEditor* scenarioEditor);
|
||||
~ToolManager();
|
||||
|
Loading…
Reference in New Issue
Block a user