Skip to content
Permalink
Browse files
Add header guard to cocktail definitions
  • Loading branch information
benjibobs committed Feb 23, 2019
1 parent 61c69c3 commit a4f364004564e1a96b2f642a9b76fc9a8b275f33
Showing 1 changed file with 7 additions and 2 deletions.
@@ -1,3 +1,6 @@
#ifndef COCKTAIL_H
#define COCKTAIL_H

#include <string>
#include <vector>

@@ -39,7 +42,7 @@ class Beverage
return recipe;
}

std::string setName(std::string newName) { //does edit class so not const
void setName(std::string newName) { //does edit class so not const
name = newName;
}

@@ -56,4 +59,6 @@ class Beverage
Glass glassType;
std::vector<Ingredient> recipe;
Decoration decoration;
};
};

#endif

0 comments on commit a4f3640

Please sign in to comment.