Skip to content

Commit

Permalink
Fix warnings about unused parameters in Handler.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
BartVandewoestyne committed Feb 15, 2024
1 parent 494d289 commit 07eb138
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Behavioral_Patterns/Chain_of_Responsibility/Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "HelpRequest.h"
#include "PrintRequest.h"

#include <iostream>

void Handler::HandleRequest (Request* theRequest) {
switch (theRequest->GetKind()) {
case Help:
Expand All @@ -25,8 +27,10 @@ void Handler::HandleRequest (Request* theRequest) {

void Handler::HandleHelp(HelpRequest* theRequest)
{
std::cout << "Handling HelpRequest " << theRequest << "." << std::endl;
}

void Handler::HandlePrint(PrintRequest* theRequest)
{
std::cout << "Handling PrintRequest " << theRequest << "." << std::endl;
}

0 comments on commit 07eb138

Please sign in to comment.