summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-11-11 19:10:49 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-11-11 19:10:49 +0000
commit6b77860fc0daef88db4486f71ae027fd2a5ad7f3 (patch)
tree4eb76cf750f12d23e30a1052f3167c9f60377db7 /src
parentbc1d1ba59f031c2d320564b53dd31f069b97464e (diff)
Make Context a class, not a struct
Diffstat (limited to 'src')
-rw-r--r--src/completion.hh2
-rw-r--r--src/context.hh3
-rw-r--r--src/hook_manager.hh2
-rw-r--r--src/register.hh2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/completion.hh b/src/completion.hh
index bd89ea4c..44726dd3 100644
--- a/src/completion.hh
+++ b/src/completion.hh
@@ -9,7 +9,7 @@
namespace Kakoune
{
-struct Context;
+class Context;
typedef std::vector<String> CandidateList;
diff --git a/src/context.hh b/src/context.hh
index d65e9d4e..e1715b4a 100644
--- a/src/context.hh
+++ b/src/context.hh
@@ -20,8 +20,9 @@ class KeymapManager;
// The Context object links an Client, an Editor (which may be a Window),
// and a UserInterface. It may represent an interactive user window, or
// a hook execution or a macro replay.
-struct Context
+class Context
{
+public:
Context();
explicit Context(Editor& editor);
Context(Client& client, Editor& editor);
diff --git a/src/hook_manager.hh b/src/hook_manager.hh
index c5b0e152..ac2ce8f5 100644
--- a/src/hook_manager.hh
+++ b/src/hook_manager.hh
@@ -9,7 +9,7 @@
namespace Kakoune
{
-struct Context;
+class Context;
typedef std::function<void (const String&, Context&)> HookFunc;
class HookManager
diff --git a/src/register.hh b/src/register.hh
index 74e34365..ff8d5519 100644
--- a/src/register.hh
+++ b/src/register.hh
@@ -7,7 +7,7 @@
namespace Kakoune
{
-struct Context;
+class Context;
class Register
{