[umbrello] [Bug 442134] "const" correctness in Umbrello sources

"Oliver Kellogg" <[email protected]>
Newsgroups gmane.linux.umbrello.devel
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=442134

--- Comment #1 from Oliver Kellogg <[email protected]> ---
Thanks for making the attachment, it is helpful.

Minor point:
> File: codedocument.h
> virtual QString getUniqueTag(const QString& prefix = QString()); // const

This one can't be made const due to a side effect this the function body,

QString CodeDocument::getUniqueTag (const QString& prefix) const
{
    [...]
    m_lastTagIndex = number;   

The compiler reports
"assignment of member ‘CodeDocument::m_lastTagIndex’ in read-only object".

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.