Make Context a class, not a struct

This commit is contained in:
Maxime Coste 2013-11-11 19:10:49 +00:00
parent bc1d1ba59f
commit 6b77860fc0
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@
namespace Kakoune namespace Kakoune
{ {
struct Context; class Context;
typedef std::vector<String> CandidateList; typedef std::vector<String> CandidateList;

View File

@ -20,8 +20,9 @@ class KeymapManager;
// The Context object links an Client, an Editor (which may be a Window), // The Context object links an Client, an Editor (which may be a Window),
// and a UserInterface. It may represent an interactive user window, or // and a UserInterface. It may represent an interactive user window, or
// a hook execution or a macro replay. // a hook execution or a macro replay.
struct Context class Context
{ {
public:
Context(); Context();
explicit Context(Editor& editor); explicit Context(Editor& editor);
Context(Client& client, Editor& editor); Context(Client& client, Editor& editor);

View File

@ -9,7 +9,7 @@
namespace Kakoune namespace Kakoune
{ {
struct Context; class Context;
typedef std::function<void (const String&, Context&)> HookFunc; typedef std::function<void (const String&, Context&)> HookFunc;
class HookManager class HookManager

View File

@ -7,7 +7,7 @@
namespace Kakoune namespace Kakoune
{ {
struct Context; class Context;
class Register class Register
{ {