Ensure header files can be compiled stand-alone.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7676 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-05 14:09:58 +00:00
parent b538a4c8fe
commit 09ec5ba3e7
6 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2003-09-05 Angus Leeming <leeming@lyx.org>
* math_binaryopinset.[Ch]:
* math_gridinfo.h:
* math_xyarrowinset.[Ch]:
ensure that the header file can be compiled stand-alone.
2003-09-05 Angus Leeming <leeming@lyx.org> 2003-09-05 Angus Leeming <leeming@lyx.org>
* *.C: strip out redundant #includes. (168 in total.) * *.C: strip out redundant #includes. (168 in total.)

View File

@ -26,9 +26,9 @@ MathBinaryOpInset::MathBinaryOpInset(char op)
{} {}
InsetBase * MathBinaryOpInset::clone() const auto_ptr<InsetBase> MathBinaryOpInset::clone() const
{ {
return new MathBinaryOpInset(*this); return auto_ptr<InsetBase>(new MathBinaryOpInset(*this));
} }

View File

@ -14,6 +14,7 @@
#include "math_nestinset.h" #include "math_nestinset.h"
#include "math_nestinset.h" #include "math_nestinset.h"
#include "metricsinfo.h"
/// An inset for multiplication /// An inset for multiplication
@ -22,7 +23,7 @@ public:
/// ///
explicit MathBinaryOpInset(char op); explicit MathBinaryOpInset(char op);
/// ///
InsetBase * clone() const; virtual std::auto_ptr<InsetBase> clone() const;
/// ///
void draw(PainterInfo &, int x, int y) const; void draw(PainterInfo &, int x, int y) const;
/// ///

View File

@ -12,6 +12,8 @@
#ifndef MATH_GRIDINFO_H #ifndef MATH_GRIDINFO_H
#define MATH_GRIDINFO_H #define MATH_GRIDINFO_H
#include "LString.h"
struct ColInfo struct ColInfo
{ {
ColInfo() : align('c'), rightline(0), leftline(false) {} ColInfo() : align('c'), rightline(0), leftline(false) {}

View File

@ -27,9 +27,9 @@ MathXYArrowInset::MathXYArrowInset()
{} {}
InsetBase * MathXYArrowInset::clone() const auto_ptr<InsetBase> MathXYArrowInset::clone() const
{ {
return new MathXYArrowInset(*this); return auto_ptr<InsetBase>(new MathXYArrowInset(*this));
} }

View File

@ -25,7 +25,7 @@ public:
/// ///
MathXYArrowInset(); MathXYArrowInset();
/// ///
InsetBase * clone() const; virtual std::auto_ptr<InsetBase> clone() const;
/// ///
void metrics(MetricsInfo & mi) const; void metrics(MetricsInfo & mi) const;
/// ///