Bug 249797 - constness issue in kcalcore
Summary: constness issue in kcalcore
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kcal (show other bugs)
Version: SVN trunk
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 23:01 UTC by tropikhajma
Modified: 2010-09-01 23:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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