Bug 249797

Summary: constness issue in kcalcore
Product: [Applications] kdepimlibs Reporter: tropikhajma <tropikhajma>
Component: kcalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN trunk   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description tropikhajma 2010-09-01 23:01:28 UTC
Version:           SVN trunk (using Devel) 
OS:                Solaris

while kcalcore/exceptions.cpp uses
Exception::Exception( ErrorCode code, const QStringList &arguments )
the kcalcore/exceptions.h uses
    explicit Exception( const ErrorCode code,
                        const QStringList &arguments = QStringList() );

Note the const at ErrorCode. This causes problems with the Sun Studio compiler, which, to keep compatibility with some ages old bug, distinguishes between const and nonconst variables.

Reproducible: Always
Comment 1 Allen Winter 2010-09-01 23:31:57 UTC
SVN commit 1170702 by winterz:

add missing 'const' to the ctor implementation.
found by the Sun Studio compiler.
BUG: 249797


 M  +1 -1      exceptions.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1170702