]> git.stg.codes - stg.git/blobdiff - projects/stargazer/store_loader.h
Various fixes of issues reported by static analyzers.
[stg.git] / projects / stargazer / store_loader.h
index c7911eead81adc97044f0b06cf45f42fd89cb00c..b38a46ee94fcbf85d2fd79a7f115e2bc474040ec 100644 (file)
 #ifndef __STORE_LOADER_H__
 #define __STORE_LOADER_H__
 
-#include <string>
-
 #include "stg/module_settings.h"
 #include "stg/noncopyable.h"
 
+#include <string>
+
 class STORE;
 class SETTINGS_IMPL;
 
 class STORE_LOADER : private NONCOPYABLE {
 public:
-    STORE_LOADER(const SETTINGS_IMPL & settings);
+    explicit STORE_LOADER(const SETTINGS_IMPL & settings);
     ~STORE_LOADER();
 
     bool Load();
     bool Unload();
 
-    STORE * GetStore() { return plugin; }
+    STORE & GetStore() { return *plugin; }
 
     const std::string & GetStrError() const { return errorStr; }
+
 private:
+    STORE_LOADER(const STORE_LOADER & rvalue);
+    STORE_LOADER & operator=(const STORE_LOADER & rvalue);
+
     bool isLoaded;
     void * handle;
     STORE * plugin;