Page MenuHomePhabricator

static const variables doesn't work in persistence service
Closed, WontfixPublic

Description

it seems that the value of the two variables

in the header:
static const std::string PERSISTENCE_PROPERTY_NAME;
static const std::string PERSISTENCE_PROPERTYLIST_NAME;

in the cpp-file:
const std::string mitk::PersistenceService::PERSISTENCE_PROPERTY_NAME("PersistenceNode");
const std::string mitk::PersistenceService::PERSISTENCE_PROPERTYLIST_NAME("PersistenceService");

is not always defined when the persistence service is used. This leads to errors.

So commented out the lines of code which use this variables and replaced them by normal strings for the moment.

This needs to be fixed so that PERSISTENCE_PROPERTY_NAME and PERSISTENCE_PROPERTYLIST_NAME are defined at a central place inside the code file.

Event Timeline

kislinsk claimed this task.
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.