justification, use auto, range for, etc.

This commit is contained in:
Jean-Francois Dockes
2021-06-22 09:01:07 +02:00
parent d3d6394652
commit 3d63f5fbd0
3 changed files with 60 additions and 89 deletions
+1 -1
View File
@@ -799,7 +799,7 @@ bool RclConfig::getMimeCategories(vector<string>& cats) const
return true;
}
bool RclConfig::isMimeCategory(string& cat) const
bool RclConfig::isMimeCategory(const string& cat) const
{
vector<string>cats;
getMimeCategories(cats);
+1 -1
View File
@@ -274,7 +274,7 @@ public:
/** mimeconf: get list of file categories */
bool getMimeCategories(vector<string>&) const;
/** mimeconf: is parameter one of the categories ? */
bool isMimeCategory(string&) const;
bool isMimeCategory(const string&) const;
/** mimeconf: get list of mime types for category */
bool getMimeCatTypes(const string& cat, vector<string>&) const;