Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUserSettings.h

Issue 5979857238360064: Issues #1163, #1173 - refactor CPluginUserSettings (Closed)
Patch Set: Created Aug. 6, 2014, 4:56 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/plugin/PluginUserSettings.cpp » ('j') | src/plugin/PluginUserSettings.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/plugin/PluginUserSettings.cpp » ('j') | src/plugin/PluginUserSettings.cpp » ('J')

Powered by Google App Engine
This is Rietveld