From ef206a4ef5bc205ebaedccfd1491d8c14ec4d5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Mon, 4 Apr 2016 20:25:17 +0200 Subject: [PATCH] Ajout de qualificateurs sur les fonctions getObjects() & getZone() --- include/level.hpp | 4 ++-- src/level.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/level.hpp b/include/level.hpp index 385f2f3..34b997d 100644 --- a/include/level.hpp +++ b/include/level.hpp @@ -49,12 +49,12 @@ public: /** * Récupère la liste des objets */ - std::vector getObjects(); + std::vector& getObjects(); /** * Récupère la zone du niveau */ - std::vector> getZone(); + const std::vector>& getZone(); }; #endif diff --git a/src/level.cpp b/src/level.cpp index 5ce66b0..805f639 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -131,10 +131,10 @@ std::string Level::getName() { return name; } -std::vector Level::getObjects() { +std::vector& Level::getObjects() { return objects; } -std::vector> Level::getZone() { +const std::vector>& Level::getZone() { return zone; }