]> Git trees. - libqmvoc.git/commitdiff
Remove MolStyle::operator=, the default operator= does just fine.
authorBenoît Jacob <jacob.benoit.1@gmail.com>
Wed, 18 Oct 2006 06:30:17 +0000 (06:30 +0000)
committerBenoît Jacob <jacob.benoit.1@gmail.com>
Wed, 18 Oct 2006 06:30:17 +0000 (06:30 +0000)
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglhelperclasses.cpp; revision=596669

kalzium/kalziumglhelperclasses.cpp
kalzium/kalziumglhelperclasses.h

index f301c0512e8cfb143876b8c2cc3800eaf4ff0484..94b86f7e72faa1a063184168f965c21695b0c701 100644 (file)
@@ -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 )
index 7940e9d62605c3fec6b0f88b39ad5fd4ddda16ab..7b10125d9bb0834d39bbe1aa495ae078a05742aa 100644 (file)
@@ -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 )