]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlParagraph.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlParagraph.C
index 5d817d31e1a61cc209fd8b63d6371164a6602892..88e2f7a3bb0da7ba28b1db8d6067b74f75db5725 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /**
  * \file ControlParagraph.C
  * This file is part of LyX, the document processor.
@@ -7,7 +6,7 @@
  * \author Edwin Leuven
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 #include "ButtonController.h"
 #include "funcrequest.h"
 #include "lyxlex.h"
+#include "paragraph.h"
 #include "ParagraphParameters.h"
-#include "support/LAssert.h"
-#include "Lsstream.h"
 
+#include <sstream>
+
+using std::istringstream;
+using std::ostringstream;
+using std::string;
+
+namespace lyx {
+namespace frontend {
 
 ControlParagraph::ControlParagraph(Dialog & parent)
        : Dialog::Controller(parent), ininset_(false)
@@ -125,14 +131,14 @@ void ControlParagraph::dispatchParams()
 
 ParagraphParameters & ControlParagraph::params()
 {
-       lyx::Assert(params_.get());
+       BOOST_ASSERT(params_.get());
        return *params_;
 }
 
 
 ParagraphParameters const & ControlParagraph::params() const
 {
-       lyx::Assert(params_.get());
+       BOOST_ASSERT(params_.get());
        return *params_;
 }
 
@@ -153,3 +159,6 @@ LyXAlignment ControlParagraph::alignDefault() const
 {
        return aligndefault_;
 }
+
+} // namespace frontend
+} // namespace lyx