diff options
-rw-r--r-- | plugins/PluginUpdater/src/Common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Common.h b/plugins/PluginUpdater/src/Common.h index 76c478b6f9..2b2c23d43b 100644 --- a/plugins/PluginUpdater/src/Common.h +++ b/plugins/PluginUpdater/src/Common.h @@ -166,6 +166,13 @@ int SafeCreateFilePath(TCHAR *pFolder); #define db_free(A) DBFreeVariant(A)
#define db_set_s(A,B,C,D) DBWriteContactSettingString(A,B,C,D)
+struct VARST : public mir_ptr<TCHAR>
+{
+ __forceinline VARST(const TCHAR *str) :
+ mir_ptr<TCHAR>( Utils_ReplaceVarsT(str))
+ {}
+};
+
template<class T> class mir_ptr
{
T *data;
|