View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015631 | Scribus | Internal | public | 2019-04-04 13:18 | 2019-06-04 20:55 |
Reporter | ale | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 1.5.5.svn | ||||
Fixed in Version | 1.5.5.svn | ||||
Summary | 0015631: make StyleSet::getDefault() const | ||||
Description | in scribus/styles/styleset.h it should be STYLE* getDefault() const { return m_default; } instead of STYLE* getDefault() const { return m_default; } currently, getDefault() is not in use, but StyleSet is often const and and if one tries to use getDefault on one of them, the compilers complaines about the loss of constness. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
I did it in a slightly different way so as to be consistent with StyleSet::operator[] |
|
@jghali, i'm checking if that works better. but since getDefault() is const, is there any reason why you don't want to make it const? |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-04-04 13:18 | ale | New Issue | |
2019-04-04 13:46 | jghali | Category | - => Internal |
2019-04-04 14:12 | ale | Relationship added | related to 0015629 |
2019-04-04 19:02 | jghali | Summary | make StyleSet::getDefault const => make StyleSet::getDefault() const |
2019-04-04 19:03 | jghali | Note Added: 0046069 | |
2019-04-04 19:03 | jghali | Assigned To | => jghali |
2019-04-04 19:03 | jghali | Status | new => resolved |
2019-04-04 19:03 | jghali | Resolution | open => fixed |
2019-04-04 19:03 | jghali | Fixed in Version | => 1.5.5.svn |
2019-04-05 08:12 | ale | Note Added: 0046072 | |
2019-06-04 20:55 | cbradney | Status | resolved => closed |