Commit 5c47b00f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Small fixes

parent 8eed4273
......@@ -40,7 +40,7 @@ bool Clipboard::has_persistent(std::string name) {
void Clipboard::clear() {
for(auto& id : m_dataID) {
Objects* collection = m_data[id];
for(Objects::iterator it = collection->begin(); it != collection->end(); it++)
for(Objects::iterator it = collection->begin(); it != collection->end(); ++it)
delete(*it);
delete m_data[id];
m_data.erase(id);
......
......@@ -49,8 +49,8 @@ namespace corryvreckan {
~Detector() {}
// Functions to retrieve basic information
std::string type() { return m_detectorType; }
std::string name() { return m_detectorName; }
const std::string type() const { return m_detectorType; }
const std::string name() const { return m_detectorName; }
// Detector role and helper functions
DetectorRole role() { return m_role; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment