]> git.lyx.org Git - features.git/blobdiff - src/lyxfunc.C
clear()->erase() ; lots of using directives for cxx
[features.git] / src / lyxfunc.C
index c572813b645a03ff646f7e7ad39fdb9c08b5e273..f287f9b2ace11d30c79434613838f027c288132f 100644 (file)
@@ -457,7 +457,7 @@ string LyXFunc::Dispatch(int ac,
         
         // we have not done anything wrong yet.
         errorstat = false;
-       dispatch_buffer.clear();
+       dispatch_buffer.erase();
        
        // if action is a pseudo-action, we need the real action
        if (lyxaction.isPseudoAction(ac)) {
@@ -481,7 +481,7 @@ string LyXFunc::Dispatch(int ac,
        if (getStatus(action) & Disabled)
                goto exit_with_message;
 
-       commandshortcut.clear();
+       commandshortcut.erase();
        
        if (lyxrc.display_shortcuts && show_sc) {
                if (action != LFUN_SELFINSERT) {