From 670dfefe50dfa928e6cf2a973aa3fb7e3492fdaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Jacob?= Date: Wed, 18 Oct 2006 06:30:17 +0000 Subject: [PATCH] Remove MolStyle::operator=, the default operator= does just fine. svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglhelperclasses.cpp; revision=596669 --- kalzium/kalziumglhelperclasses.cpp | 13 ------------- kalzium/kalziumglhelperclasses.h | 3 +-- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/kalzium/kalziumglhelperclasses.cpp b/kalzium/kalziumglhelperclasses.cpp index f301c05..94b86f7 100644 --- a/kalzium/kalziumglhelperclasses.cpp +++ b/kalzium/kalziumglhelperclasses.cpp @@ -32,19 +32,6 @@ MolStyle::MolStyle( BondStyle bondStyle, AtomStyle atomStyle, m_atomRadiusFactor = atomRadiusFactor; } -MolStyle& MolStyle::operator=( const MolStyle& other ) -{ - m_bondStyle = other.m_bondStyle; - m_atomStyle = other.m_atomStyle; - m_singleBondRadius = other.m_singleBondRadius; - m_renderMultipleBonds = other.m_renderMultipleBonds; - m_multipleBondRadius = other.m_multipleBondRadius; - m_multipleBondShift = other.m_multipleBondShift; - m_atomRadiusFactor = other.m_atomRadiusFactor; - - return *this; -} - double MolStyle::getAtomRadius( int atomicNumber ) { switch( m_atomStyle ) diff --git a/kalzium/kalziumglhelperclasses.h b/kalzium/kalziumglhelperclasses.h index 7940e9d..7b10125 100644 --- a/kalzium/kalziumglhelperclasses.h +++ b/kalzium/kalziumglhelperclasses.h @@ -99,11 +99,10 @@ struct MolStyle double multipleBondShift, double atomRadiusFactor ); - MolStyle& operator=( const MolStyle& other ); - /** This function returns the radius in which an atom with given atomic * number should be rendered, when using this style */ double getAtomRadius( int atomicNumber ); + /** This function returns the radius in which the passed OBAtom * should be rendered, when using this style */ inline double getAtomRadius( const OpenBabel::OBAtom *atom ) -- 2.47.3