Make operator bool() in html_extract and archive_answer const.
This commit is contained in:
parent
eab10e28ae
commit
b7d5b21899
|
@ -1,5 +1,5 @@
|
|||
/* 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -42,7 +42,7 @@ struct html_extract
|
|||
string description;
|
||||
string fulltext;
|
||||
|
||||
explicit operator bool();
|
||||
explicit operator bool() const;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
@ -60,7 +60,7 @@ struct archive_answer
|
|||
string error;
|
||||
string uri;
|
||||
|
||||
explicit operator bool();
|
||||
explicit operator bool() const;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
|
@ -59,12 +59,12 @@ using std::unique_ptr;
|
|||
using std::vector;
|
||||
using RegEx = Poco::RegularExpression;
|
||||
|
||||
html_extract::operator bool()
|
||||
html_extract::operator bool() const
|
||||
{
|
||||
return successful;
|
||||
}
|
||||
|
||||
archive_answer::operator bool()
|
||||
archive_answer::operator bool() const
|
||||
{
|
||||
return successful;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user