]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCommandBuffer.C
convert author names and status messages to docstring
[lyx.git] / src / frontends / controllers / ControlCommandBuffer.C
index c2951d69a0899dbc6631799058cb458d5a34d219..ef4bcb6a281f0c45842c72d684907409fa5e330d 100644 (file)
@@ -38,7 +38,8 @@ namespace frontend {
 
 namespace {
 
-struct prefix_p {
+class prefix_p {
+public:
        string p;
        prefix_p(string const & s)
                : p(s) {}
@@ -78,7 +79,7 @@ string const ControlCommandBuffer::historyDown()
 }
 
 
-string const ControlCommandBuffer::getCurrentState() const
+docstring const ControlCommandBuffer::getCurrentState() const
 {
        return lv_.view()->cursor().currentState();
 }
@@ -132,7 +133,7 @@ void ControlCommandBuffer::dispatch(string const & str)
        history_pos_ = history_.end();
        FuncRequest func = lyxaction.lookupFunc(str);
        func.origin = FuncRequest::COMMANDBUFFER;
-       lv_.getLyXFunc().dispatch(func);
+       lv_.dispatch(func);
 }
 
 } // namespace frontend