Skip to content
  • Alexey Khudyakov's avatar
    Change signatures of member functions of SkyPoint · fe2c14fe
    Alexey Khudyakov authored
    namely: ra,ra0,dec,dec0,az,alt
    
    Now they return const reference to dms instead of pointer. Main
    reason bhid this change is to use plain dumb assignment for angles
    For example following code snippets could be found in KStars sources
    
    > a1.setH( p->ra().Hours() );
    
    Actually it is plain assignment but in obscure form and rather ineffective.
    It include two multiplications. Following code is equivalent:
    
    > a1 = p->ra();
    
    Much easier to understand.
    
    Change is very extensive but fairly trivial. At the very least code
    does compile and seems to work.
    
    CCMAIL: kstars-devel@kde.org
    
    svn path=/trunk/KDE/kdeedu/kstars/; revision=1089286
    fe2c14fe