Added pragma once directive to Service

This commit is contained in:
2026-04-21 11:12:19 +03:00
parent fa1be9fb42
commit 823e4c83ef
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}; };

View File

@@ -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() {}
}; };