This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix erroneous comments in rss_feed::set_rssurl
cppcheck pointed out that I overwrite variable's value right after assigning it, and this proved to be true. However, while looking into it, I found that the comments I left in the function don't match the reality as the input that it gets are a bit different from the examples in comments. It's sheer luck that the code that I got by making a mistake turned out to be *right*. So I removed superfluous code, amended the comments and added a few tests to make sure I never step into that particular trap ever again.
- Loading branch information
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters