Fix failed override attempt

This commit is contained in:
Marianne Gagnon
2014-01-29 19:08:17 -05:00
parent d57710b717
commit b7e7808500
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ namespace Online
/** Checks the request if it has enough (correct) information to be
* executed (and thus allowed to add to the queue).
*/
bool HTTPRequest::isAllowedToAdd()
bool HTTPRequest::isAllowedToAdd() const
{
return Request::isAllowedToAdd() && m_url.substr(0, 5) == "http:";
} // isAllowedToAdd

View File

@@ -87,7 +87,7 @@ namespace Online
bool manage_memory = false,
int priority = 1);
virtual ~HTTPRequest() {};
virtual bool isAllowedToAdd() OVERRIDE;
virtual bool isAllowedToAdd() const OVERRIDE;
void setServerURL(const std::string& url);
void setAddonsURL(const std::string& path);
// ------------------------------------------------------------------------