From 0a46003741d75aa02c37d6b23a47dcf60043ce19 Mon Sep 17 00:00:00 2001 From: Pavetr Date: Tue, 21 Apr 2026 11:12:19 +0300 Subject: [PATCH] Added pragma once directive to Service --- Service.h | 3 ++- XmlService.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Service.h b/Service.h index f884020..cb9e1a0 100644 --- a/Service.h +++ b/Service.h @@ -1,9 +1,10 @@ +#pragma once #include #include "Weather.h" class Service { public: virtual ~Service() = default; - + virtual Weather getWeather(std::string s) = 0; }; diff --git a/XmlService.h b/XmlService.h index 2219a59..d4aa17d 100644 --- a/XmlService.h +++ b/XmlService.h @@ -5,4 +5,4 @@ class XmlService : public Service { public: virtual Weather getWeather(std::string s) override; virtual ~XmlService() {} -}; \ No newline at end of file +};