summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-09 06:43:45 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-09 06:43:45 (GMT)
commit76edbd38835e4a81cf55cdaa628374a9c439a300 (patch)
treef6a277af74b2232ef61e39dab5342de8c81ad48f
parent0e8a7b92d5dc51e9bc7a9b11ddd451c22470cd30 (diff)
No need for explicit mention of GeoDataGeometry class when calling detach()
-rw-r--r--src/lib/marble/geodata/data/GeoDataLineString.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/marble/geodata/data/GeoDataLineString.cpp b/src/lib/marble/geodata/data/GeoDataLineString.cpp
index 1b65a93..bb62766 100644
--- a/src/lib/marble/geodata/data/GeoDataLineString.cpp
+++ b/src/lib/marble/geodata/data/GeoDataLineString.cpp
@@ -281,7 +281,7 @@ int GeoDataLineString::size() const
GeoDataCoordinates& GeoDataLineString::at( int pos )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
d->m_dirtyRange = true;
@@ -297,7 +297,7 @@ const GeoDataCoordinates& GeoDataLineString::at( int pos ) const
GeoDataCoordinates& GeoDataLineString::operator[]( int pos )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
d->m_dirtyRange = true;
@@ -313,7 +313,7 @@ const GeoDataCoordinates& GeoDataLineString::operator[]( int pos ) const
GeoDataCoordinates& GeoDataLineString::last()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
d->m_dirtyRange = true;
@@ -323,7 +323,7 @@ GeoDataCoordinates& GeoDataLineString::last()
GeoDataCoordinates& GeoDataLineString::first()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
return d->m_vector.first();
@@ -343,7 +343,7 @@ const GeoDataCoordinates& GeoDataLineString::first() const
QVector<GeoDataCoordinates>::Iterator GeoDataLineString::begin()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
return d->m_vector.begin();
@@ -357,7 +357,7 @@ QVector<GeoDataCoordinates>::ConstIterator GeoDataLineString::begin() const
QVector<GeoDataCoordinates>::Iterator GeoDataLineString::end()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
return d->m_vector.end();
@@ -383,7 +383,7 @@ QVector<GeoDataCoordinates>::ConstIterator GeoDataLineString::constEnd() const
void GeoDataLineString::insert( int index, const GeoDataCoordinates& value )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -395,7 +395,7 @@ void GeoDataLineString::insert( int index, const GeoDataCoordinates& value )
void GeoDataLineString::append ( const GeoDataCoordinates& value )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -407,7 +407,7 @@ void GeoDataLineString::append ( const GeoDataCoordinates& value )
void GeoDataLineString::append(const QVector<GeoDataCoordinates>& values)
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -427,7 +427,7 @@ void GeoDataLineString::append(const QVector<GeoDataCoordinates>& values)
GeoDataLineString& GeoDataLineString::operator << ( const GeoDataCoordinates& value )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -440,7 +440,7 @@ GeoDataLineString& GeoDataLineString::operator << ( const GeoDataCoordinates& va
GeoDataLineString& GeoDataLineString::operator << ( const GeoDataLineString& value )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -492,7 +492,7 @@ bool GeoDataLineString::operator!=( const GeoDataLineString &other ) const
void GeoDataLineString::clear()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -516,7 +516,7 @@ bool GeoDataLineString::tessellate() const
void GeoDataLineString::setTessellate( bool tessellate )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
// According to the KML reference the tesselation of line strings in Google Earth
@@ -541,7 +541,7 @@ TessellationFlags GeoDataLineString::tessellationFlags() const
void GeoDataLineString::setTessellationFlags( TessellationFlags f )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
d->m_tessellationFlags = f;
@@ -549,7 +549,7 @@ void GeoDataLineString::setTessellationFlags( TessellationFlags f )
void GeoDataLineString::reverse()
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -837,7 +837,7 @@ qreal GeoDataLineString::length( qreal planetRadius, int offset ) const
QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoDataCoordinates>::Iterator pos )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -850,7 +850,7 @@ QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoData
QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoDataCoordinates>::Iterator begin,
QVector<GeoDataCoordinates>::Iterator end )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
delete d->m_rangeCorrected;
@@ -862,7 +862,7 @@ QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoData
void GeoDataLineString::remove ( int i )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);
d->m_dirtyRange = true;
@@ -907,7 +907,7 @@ void GeoDataLineString::pack( QDataStream& stream ) const
void GeoDataLineString::unpack( QDataStream& stream )
{
- GeoDataGeometry::detach();
+ detach();
Q_D(GeoDataLineString);