mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
2a5ab60ce8
Some mathed internal renamings to prepare further IU git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7173 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
861 B
C
52 lines
861 B
C
/*
|
|
* File: math_atom.C
|
|
* Purpose: Wrapper for MathInset *
|
|
* Author: André Pönitz
|
|
* Created: July 2001
|
|
*
|
|
* Copyright: 2001 The LyX team
|
|
*
|
|
* Version: 1.2.0
|
|
*
|
|
* You are free to use and modify this code under the terms of
|
|
* the GNU General Public Licence version 2 or later.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "math_atom.h"
|
|
#include "math_inset.h"
|
|
#include "insets/insetbase.h"
|
|
|
|
#include <utility>
|
|
|
|
|
|
MathAtom::MathAtom()
|
|
: nucleus_(0)
|
|
{}
|
|
|
|
|
|
MathAtom::MathAtom(InsetBase * p)
|
|
: nucleus_(static_cast<MathInset *>(p))
|
|
{}
|
|
|
|
|
|
MathAtom::MathAtom(MathAtom const & at)
|
|
: nucleus_(at.nucleus_ ? static_cast<MathInset *>(at.nucleus_->clone()) : 0)
|
|
{}
|
|
|
|
|
|
void MathAtom::operator=(MathAtom const & at)
|
|
{
|
|
if (&at == this)
|
|
return;
|
|
MathAtom tmp(at);
|
|
std::swap(tmp.nucleus_, nucleus_);
|
|
}
|
|
|
|
|
|
MathAtom::~MathAtom()
|
|
{
|
|
delete nucleus_;
|
|
}
|