Bug report #3916

QgsUniqueValueRenderer::operator= must return a value

Added by Mateusz Loskot - over 16 years ago. Updated over 13 years ago.

Assignee:Gary Sherman
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13940


Assignment operator must return a value.
Trying to compile this code using VC++ or Comeau C/C++:

struct A
   A& operator=(A const& rhs)

I get this error:

MODE:strict errors C++

"ComeauTest.c", line 5: warning: missing return statement
at end of non-void function

This is ISO C++ conformant behaviour.

There are many assignment operators defined as not
returning any value. This is a bug!


#1 Updated by Gary Sherman over 16 years ago

  • Status changed from Open to In Progress

As far as I can tell, it does return a value.

#2 Updated by Mateusz Loskot - over 16 years ago

Yes, as I see in the logs, timlinux applied those changes:


#3 Updated by Gavin Macaulay - over 16 years ago

  • Resolution set to fixed
  • Status changed from In Progress to Closed

Resolved in d2b74ca7 (SVN r5061)

#4 Updated by Anonymous over 13 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF