diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-07 18:38:44 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-07 18:38:44 +0200 |
| commit | c210f6793f3f1d62ff241bb31c42938e05e9a783 (patch) | |
| tree | a4330b922ee1ef549ff60070c34e13ecc9971926 /lib | |
| parent | c64f91baf599133f88658e7a45a4d7e4a6c43d2b (diff) | |
| download | abrt-c210f6793f3f1d62ff241bb31c42938e05e9a783.tar.gz abrt-c210f6793f3f1d62ff241bb31c42938e05e9a783.tar.xz abrt-c210f6793f3f1d62ff241bb31c42938e05e9a783.zip | |
replace string memebers of plugin_info_t with const char*
Since they are constant, and we never ever want to change them,
there is no benefit in having them as strings.
This change removes one global data object's constructor
and destructor from every applet .so module. 6k less code.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/MiddleWare/Plugin.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/MiddleWare/Plugin.h b/lib/MiddleWare/Plugin.h index 60ebc59..d615fc8 100644 --- a/lib/MiddleWare/Plugin.h +++ b/lib/MiddleWare/Plugin.h @@ -86,12 +86,12 @@ typedef enum { typedef struct SPluginInfo { const plugin_type_t m_Type; /**< Plugin type.*/ - const std::string m_sName; /**< Plugin name.*/ - const std::string m_sVersion; /**< Plugin version.*/ - const std::string m_sDescription; /**< Plugin description.*/ - const std::string m_sEmail; /**< Plugin author's email.*/ - const std::string m_sWWW; /**< Plugin's home page.*/ - const std::string m_sGTKBuilder; /**< Plugin's gui description.*/ + const char *const m_sName; /**< Plugin name.*/ + const char *const m_sVersion; /**< Plugin version.*/ + const char *const m_sDescription; /**< Plugin description.*/ + const char *const m_sEmail; /**< Plugin author's email.*/ + const char *const m_sWWW; /**< Plugin's home page.*/ + const char *const m_sGTKBuilder; /**< Plugin's gui description.*/ const int m_nMagicNumber; /**< Plugin magical number.*/ } plugin_info_t; |
