Skip to content

Commit

Permalink
fixup! OpdsCatalog::getSearchUrl()
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Jun 9, 2021
1 parent 31432d2 commit f962d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions include/opds_catalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
namespace kiwix
{

class OpdsCatalog
{
public:
static std::string getSearchUrl(const Filter& f);
};
std::string getSearchUrl(const Filter& f);

} // namespace kiwix

Expand Down
2 changes: 1 addition & 1 deletion src/opds_catalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ std::string buildSearchString(const Filter& f)

} // unnamed namespace

std::string OpdsCatalog::getSearchUrl(const Filter& f)
std::string getSearchUrl(const Filter& f)
{
const std::string searchString = buildSearchString(f);

Expand Down
2 changes: 1 addition & 1 deletion test/opds_catalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using namespace kiwix;

TEST(OpdsCatalog, getSearchUrl)
{
#define EXPECT_SEARCH_URL(url) EXPECT_EQ(url, OpdsCatalog::getSearchUrl(f))
#define EXPECT_SEARCH_URL(url) EXPECT_EQ(url, getSearchUrl(f))
{
Filter f;
EXPECT_SEARCH_URL("/catalog/v2/entries");
Expand Down

0 comments on commit f962d77

Please sign in to comment.