| Index: src/plugin/PluginUserSettings.h |
| =================================================================== |
| --- a/src/plugin/PluginUserSettings.h |
| +++ b/src/plugin/PluginUserSettings.h |
| @@ -1,7 +1,8 @@ |
| +#ifndef PLUGIN_USER_SETTINGS_H |
| +#define PLUGIN_USER_SETTINGS_H |
| #pragma once |
|
Oleksandr
2014/08/17 22:52:01
Do we really need both #pragma once and #ifndef ab
Eric
2014/09/29 18:45:41
It's not needed for correctness; the #ifndef guard
Oleksandr
2014/10/02 20:36:53
I have never seen both versions used simultaniousl
Eric
2014/10/14 22:23:50
All four of the ATL library use this pattern, for
|
| -#include <vector> |
| -#include <utility> |
| +#include <OAIdl.h> |
| /* |
| Class is used to call methods Get,Set,Update of Settings object from JavaScript. |
| @@ -11,7 +12,9 @@ |
| class CPluginUserSettings: public IDispatch |
| { |
| public: |
| - CPluginUserSettings(); |
| + CPluginUserSettings() // = default; |
| + { |
| + } |
| // IUnknown |
| STDMETHOD(QueryInterface)(REFIID riid, void **ppvObj); |
| @@ -25,3 +28,5 @@ |
| STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispparams, VARIANT* pVarResult, |
| EXCEPINFO* pExcepinfo, UINT* pArgErr); |
| }; |
| + |
| +#endif |