Make operator bool() in html_extract and archive_answer const.

This commit is contained in:
tastytea 2020-10-31 13:25:02 +01:00
parent eab10e28ae
commit b7d5b21899
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* This file is part of remwharead. /* This file is part of remwharead.
* Copyright © 2019 tastytea <tastytea@tastytea.de> * Copyright © 2019, 2020 tastytea <tastytea@tastytea.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -42,7 +42,7 @@ struct html_extract
string description; string description;
string fulltext; string fulltext;
explicit operator bool(); explicit operator bool() const;
}; };
/*! /*!
@ -60,7 +60,7 @@ struct archive_answer
string error; string error;
string uri; string uri;
explicit operator bool(); explicit operator bool() const;
}; };
/*! /*!

View File

@ -59,12 +59,12 @@ using std::unique_ptr;
using std::vector; using std::vector;
using RegEx = Poco::RegularExpression; using RegEx = Poco::RegularExpression;
html_extract::operator bool() html_extract::operator bool() const
{ {
return successful; return successful;
} }
archive_answer::operator bool() archive_answer::operator bool() const
{ {
return successful; return successful;
} }