Added pragma once directive to Service
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "Weather.h"
|
#include "Weather.h"
|
||||||
|
|
||||||
class Service {
|
class Service {
|
||||||
public:
|
public:
|
||||||
virtual ~Service() = default;
|
virtual ~Service() = default;
|
||||||
|
|
||||||
virtual Weather getWeather(std::string s) = 0;
|
virtual Weather getWeather(std::string s) = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ class XmlService : public Service {
|
|||||||
public:
|
public:
|
||||||
virtual Weather getWeather(std::string s) override;
|
virtual Weather getWeather(std::string s) override;
|
||||||
virtual ~XmlService() {}
|
virtual ~XmlService() {}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user