summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/dtor.h2
-rw-r--r--src/utils/gettexthelper.h2
-rw-r--r--src/utils/mutex.h2
-rw-r--r--src/utils/naclmessages.cpp9
-rw-r--r--src/utils/perfomance.h2
-rw-r--r--src/utils/physfsmemoryobject.h2
-rw-r--r--src/utils/sdlmemoryobject.h5
-rw-r--r--src/utils/translation/translationmanager.h2
8 files changed, 25 insertions, 1 deletions
diff --git a/src/utils/dtor.h b/src/utils/dtor.h
index 87dd3418a..7856fc248 100644
--- a/src/utils/dtor.h
+++ b/src/utils/dtor.h
@@ -31,6 +31,8 @@
template<typename T>
struct dtor final : public std::unary_function <T, void>
{
+ A_DEFAULT_COPY(dtor)
+
void operator()(T &ptr)
{ delete ptr; }
};
diff --git a/src/utils/gettexthelper.h b/src/utils/gettexthelper.h
index a83fc44cd..d42266d45 100644
--- a/src/utils/gettexthelper.h
+++ b/src/utils/gettexthelper.h
@@ -30,6 +30,8 @@
class GettextHelper final
{
public:
+ A_DELETE_COPY(GettextHelper)
+
static void initLang();
private:
diff --git a/src/utils/mutex.h b/src/utils/mutex.h
index fd295000e..27adc5322 100644
--- a/src/utils/mutex.h
+++ b/src/utils/mutex.h
@@ -62,6 +62,8 @@ class MutexLocker final
{
}
+ A_DEFAULT_COPY(MutexLocker)
+
~MutexLocker();
private:
diff --git a/src/utils/naclmessages.cpp b/src/utils/naclmessages.cpp
index 1c48c0b10..44e6aba1b 100644
--- a/src/utils/naclmessages.cpp
+++ b/src/utils/naclmessages.cpp
@@ -34,6 +34,15 @@
struct NaclMessageHandle final
{
+ NaclMessageHandle() :
+ handled(false),
+ type(),
+ message(),
+ condv()
+ { }
+
+ A_DELETE_COPY(NaclMessageHandle)
+
bool handled;
std::string type;
std::string message;
diff --git a/src/utils/perfomance.h b/src/utils/perfomance.h
index 409b5037d..4d8fc6188 100644
--- a/src/utils/perfomance.h
+++ b/src/utils/perfomance.h
@@ -59,6 +59,8 @@ namespace Perfomance
blockStart(str);
}
+ A_DELETE_COPY(Func)
+
~Func()
{
blockEnd(name);
diff --git a/src/utils/physfsmemoryobject.h b/src/utils/physfsmemoryobject.h
index fef3ec02c..62668b511 100644
--- a/src/utils/physfsmemoryobject.h
+++ b/src/utils/physfsmemoryobject.h
@@ -37,6 +37,8 @@ struct PHYSFSMemoryObject final
{
}
+ A_DELETE_COPY(PHYSFSMemoryObject)
+
std::string mName;
std::string mAddFile;
};
diff --git a/src/utils/sdlmemoryobject.h b/src/utils/sdlmemoryobject.h
index 4fec1c5f9..daab75088 100644
--- a/src/utils/sdlmemoryobject.h
+++ b/src/utils/sdlmemoryobject.h
@@ -33,7 +33,8 @@
struct SDLMemoryObject final
{
- SDLMemoryObject(const std::string &name, const char *const file,
+ SDLMemoryObject(const std::string &name,
+ const char *const file,
const unsigned int line) :
mName(name),
mAddFile(strprintf("%s:%u", file, line)),
@@ -42,6 +43,8 @@ struct SDLMemoryObject final
{
}
+ A_DELETE_COPY(SDLMemoryObject)
+
std::string mName;
std::string mAddFile;
std::string mRemoveFile;
diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h
index 413edffb0..7230649e9 100644
--- a/src/utils/translation/translationmanager.h
+++ b/src/utils/translation/translationmanager.h
@@ -31,6 +31,8 @@ class PoDict;
class TranslationManager final
{
public:
+ A_DELETE_COPY(TranslationManager)
+
static PoDict *loadLang(const LangVect &lang,
const std::string &subName,
PoDict *const dict = nullptr);