Menu

#311 const get methods in IAttributes

closed-accepted
None
5
2016-03-27
2016-03-25
No

the getAttributeAs... functions in IAttributes are not const, except curiously in the case for int. simply adding const to all method declarations seems to work, i.e. the implementations are not doing any non-const accesses and as such it seems reasonable to declare these functions const.

1 Attachments

Discussion

  • Michael Zeilfelder

    • status: open --> closed-accepted
    • assigned_to: Michael Zeilfelder
     
  • Michael Zeilfelder

    Yeah, I also see no reason for them not to be const. Thanks for the patch, it's been applied in svn trunk r5293

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.