]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlError.C
Work around for g++ 2.95's broken string::clear()
[lyx.git] / src / frontends / controllers / ControlError.C
index 9e206520027ac5984f2ecbd3bf3eabc990883cc1..4466d618061f4e1508dd609ec96c4a662412c5ec 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "ControlError.h"
-#include "insets/inseterror.h"
 
 
-ControlError::ControlError(LyXView & lv, Dialogs & d)
-       : ControlInset<InsetError, string>(lv, d)
+ControlError::ControlError(Dialog & parent)
+       : Dialog::Controller(parent)
 {}
 
 
-string const ControlError::getParams(InsetError const & inset)
+void ControlError::initialiseParams(string const & data)
+{
+       params_ = data;
+}
+
+
+void ControlError::clearParams()
 {
-       return inset.getContents();
+       // g++ 2.95.3 doesn't like this although it should be ok
+       //params_.clear();
+       params_ = string();
 }
+