summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/sallogareas.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 10:26:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 10:26:46 +0200
commit4c0198b02c4a514bc61772d8c671c47c9553fd7a (patch)
tree33a5a91f23f075db507cb88672d96ea760bdc0ec /compilerplugins/clang/sallogareas.cxx
parent03ee996717dcf9e20529a6a3295df69d0d86dcce (diff)
reformat some loplugin code
to match our more normal conventions. Also drop the 'using std' and some other cruft Change-Id: I02ef81c5427188bc03a20b157a57a900a9d7bf0d
Diffstat (limited to 'compilerplugins/clang/sallogareas.cxx')
-rw-r--r--compilerplugins/clang/sallogareas.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/compilerplugins/clang/sallogareas.cxx b/compilerplugins/clang/sallogareas.cxx
index e6c2997263da..98cafb596fd5 100644
--- a/compilerplugins/clang/sallogareas.cxx
+++ b/compilerplugins/clang/sallogareas.cxx
@@ -202,18 +202,18 @@ bad:
void SalLogAreas::readLogAreas()
{
- ifstream is( SRCDIR "/include/sal/log-areas.dox" );
+ std::ifstream is( SRCDIR "/include/sal/log-areas.dox" );
while( is.good())
{
- string line;
+ std::string line;
getline( is, line );
size_t pos = line.find( "@li @c " );
- if( pos != string::npos )
+ if( pos != std::string::npos )
{
pos += strlen( "@li @c " );
size_t end = line.find( ' ', pos );
std::string area;
- if( end == string::npos )
+ if( end == std::string::npos )
area = line.substr( pos );
else if( pos != end )
area = line.substr( pos, end - pos );