Fixes from mateusz for the following issues:

1453164     getCurrentLongAttribute incomplete return path
1449301   QgsSingleSymbolRenderer::operator= must return a value
1449277   QgsLegendGroup::insert must return a value
1449268   QgsGeometryVertexIndex::operator= must return a value
1449257   QgsGraduatedSymbolRenderer::operator= must return a value
1449252   QgsContinuousColorRenderer::operator= must return a value
1448031   QgsUniqueValueRenderer::operator= must return a value
1448028   QgsMapLayer::draw must return a value
1448014   'and' is undefined keyword




git-svn-id: http://svn.osgeo.org/qgis/trunk@5060 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2006-03-18 20:31:29 +00:00
parent 3ece7be85a
commit d2b74ca7af
12 changed files with 42 additions and 27 deletions

View File

@ -1,5 +1,6 @@
/* ChangeLog,v 1.214 2004/11/12 00:42:21 gsherman Exp */ /* ChangeLog,v 1.214 2004/11/12 00:42:21 gsherman Exp */
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Version 0.8 'Joesephine' .... development version Version 0.8 'Joesephine' .... development version
2006-01-23 [timlinux] 0.7.9.10 2006-01-23 [timlinux] 0.7.9.10
** Dropped use of qpicture and resampling for point markers in favour of ** Dropped use of qpicture and resampling for point markers in favour of

View File

@ -31,6 +31,7 @@ QgsGeometryVertexIndex::QgsGeometryVertexIndex( QgsGeometryVertexIndex const & r
QgsGeometryVertexIndex & QgsGeometryVertexIndex::operator=( QgsGeometryVertexIndex const & rhs ) QgsGeometryVertexIndex & QgsGeometryVertexIndex::operator=( QgsGeometryVertexIndex const & rhs )
{ {
mIndex = rhs.mIndex; mIndex = rhs.mIndex;
return *this;
} }
QgsGeometryVertexIndex::~QgsGeometryVertexIndex() QgsGeometryVertexIndex::~QgsGeometryVertexIndex()

View File

@ -54,6 +54,7 @@ QgsContinuousColorRenderer& QgsContinuousColorRenderer::operator=(const QgsConti
mMinimumSymbol = new QgsSymbol(*other.mMinimumSymbol); mMinimumSymbol = new QgsSymbol(*other.mMinimumSymbol);
mMaximumSymbol = new QgsSymbol(*other.mMaximumSymbol); mMaximumSymbol = new QgsSymbol(*other.mMaximumSymbol);
} }
return *this;
} }
QgsContinuousColorRenderer::~QgsContinuousColorRenderer() QgsContinuousColorRenderer::~QgsContinuousColorRenderer()

View File

@ -58,6 +58,8 @@ QgsGraduatedSymbolRenderer& QgsGraduatedSymbolRenderer::operator=(const QgsGradu
addSymbol(new QgsSymbol(**it)); addSymbol(new QgsSymbol(**it));
} }
} }
return *this;
} }
QgsGraduatedSymbolRenderer::~QgsGraduatedSymbolRenderer() QgsGraduatedSymbolRenderer::~QgsGraduatedSymbolRenderer()

View File

@ -38,6 +38,7 @@
// use M_PI define PI 3.141592654 // use M_PI define PI 3.141592654
#ifdef WIN32 #ifdef WIN32
#undef M_PI
#define M_PI 4*atan(1.0) #define M_PI 4*atan(1.0)
#endif #endif

View File

@ -157,6 +157,7 @@ void QgsMapLayer::draw(QPainter *, QgsRect * viewExtent, int yTransform)
bool QgsMapLayer::draw(QPainter *, QgsRect *, QgsMapToPixel *) bool QgsMapLayer::draw(QPainter *, QgsRect *, QgsMapToPixel *)
{ {
// std::cout << "In QgsMapLayer::draw" << std::endl; // std::cout << "In QgsMapLayer::draw" << std::endl;
return false;
} }
void QgsMapLayer::drawLabels(QPainter *, QgsRect *, QgsMapToPixel *) void QgsMapLayer::drawLabels(QPainter *, QgsRect *, QgsMapToPixel *)

View File

@ -283,7 +283,10 @@ void QgsServerSourceSelect::populateImageEncodingGroup(QgsWmsProvider* wmsProvid
std::set<QString> QgsServerSourceSelect::crsForSelection() std::set<QString> QgsServerSourceSelect::crsForSelection()
{ {
std::set<QString> crsCandidates;; std::set<QString> crsCandidates;
// XXX - mloskot - temporary solution, function must return a value
return crsCandidates;
QStringList::const_iterator i; QStringList::const_iterator i;
for (i = m_selectedLayers.constBegin(); i != m_selectedLayers.constEnd(); ++i) for (i = m_selectedLayers.constBegin(); i != m_selectedLayers.constEnd(); ++i)

View File

@ -71,6 +71,7 @@ QgsSingleSymbolRenderer& QgsSingleSymbolRenderer::operator=(const QgsSingleSymbo
delete mSymbol; delete mSymbol;
mSymbol = new QgsSymbol(*other.mSymbol); mSymbol = new QgsSymbol(*other.mSymbol);
} }
return *this;
} }
QgsSingleSymbolRenderer::~QgsSingleSymbolRenderer() QgsSingleSymbolRenderer::~QgsSingleSymbolRenderer()

View File

@ -60,6 +60,7 @@ QgsUniqueValueRenderer& QgsUniqueValueRenderer::operator=(const QgsUniqueValueRe
insertValue(it->first, s); insertValue(it->first, s);
} }
} }
return *this;
} }
QgsUniqueValueRenderer::~QgsUniqueValueRenderer() QgsUniqueValueRenderer::~QgsUniqueValueRenderer()

View File

@ -101,6 +101,9 @@ bool QgsLegendGroup::insert(QgsLegendItem* theItem)
{ {
addChild(theItem); addChild(theItem);
} }
// XXX - mloskot - I don't know what to return
// but this function must return a value
return true;
} }
std::list<QgsLegendLayerFile*> QgsLegendGroup::legendLayerFiles() std::list<QgsLegendLayerFile*> QgsLegendGroup::legendLayerFiles()

View File

@ -89,8 +89,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>341</width> <width>363</width>
<height>237</height> <height>243</height>
</rect> </rect>
</property> </property>
<attribute name="label" > <attribute name="label" >

View File

@ -161,8 +161,8 @@ void QgsProjectionSelector::setSelectedSRSID(long theSRSID)
void QgsProjectionSelector::applySRSNameSelection() void QgsProjectionSelector::applySRSNameSelection()
{ {
if ( if (
(mSRSNameSelectionPending) and (mSRSNameSelectionPending) &&
(mProjListDone) and (mProjListDone) &&
(mUserProjListDone) (mUserProjListDone)
) )
{ {
@ -190,8 +190,8 @@ void QgsProjectionSelector::applySRSNameSelection()
void QgsProjectionSelector::applySRSIDSelection() void QgsProjectionSelector::applySRSIDSelection()
{ {
if ( if (
(mSRSIDSelectionPending) and (mSRSIDSelectionPending) &&
(mProjListDone) and (mProjListDone) &&
(mUserProjListDone) (mUserProjListDone)
) )
{ {