git.stg.codes
/
stg.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Стилистические правки и инициализация неинициализованных членов в
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
sgconfig-ng
/
creator.cpp
1
#include "stgconfig.h"
2
3
class STGCONFIG_CREATOR
4
{
5
private:
6
STGCONFIG2 * stgconfig;
7
8
public:
9
STGCONFIG_CREATOR()
10
: stgconfig(new STGCONFIG2())
11
{
12
};
13
~STGCONFIG_CREATOR()
14
{
15
delete stgconfig;
16
};
17
18
STGCONFIG2 * GetPlugin()
19
{
20
return stgconfig;
21
};
22
};
23
24
STGCONFIG_CREATOR stgc;
25
26
BASE_PLUGIN * GetPlugin()
27
{
28
return stgc.GetPlugin();
29
}