Skip to content

Commit

Permalink
fixup! Introduce SuggestionItem class
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm authored and kelson42 committed May 25, 2021
1 parent a9cf199 commit 2bbe0fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace kiwix
class SuggestionItem
{
// Functions
public:
private:
// Create a sugggestion item.
explicit SuggestionItem(std::string title, std::string normalizedTitle,
std::string path, std::string snippet = "") :
Expand All @@ -54,6 +54,7 @@ class SuggestionItem
path(path),
snippet(snippet) {}

public:
const std::string getTitle() {return title;}
const std::string getNormalizedTitle() {return normalizedTitle;}
const std::string getPath() {return path;}
Expand All @@ -67,6 +68,8 @@ class SuggestionItem
std::string normalizedTitle;
std::string path;
std::string snippet;

friend class Reader;
};

/**
Expand Down

0 comments on commit 2bbe0fa

Please sign in to comment.