summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-25 09:59:16 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-12 22:06:19 -0400
commitc5cdfe39d3afca716e7b11f8f8e169ce378861ea (patch)
tree5b804fa2e78405afe16db734f88f24a7b9714209 /helpcompiler
parent0c4c31576fe03b3b59217bf9990b75f32d193d0d (diff)
update loplugin stylepolice to check local pointers vars
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit e8fd5a07eca70912ddee45aaa34d434809b59fb7) Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpIndexer_main.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/helpcompiler/source/HelpIndexer_main.cxx b/helpcompiler/source/HelpIndexer_main.cxx
index 85ff29a39b9d..82822d897445 100644
--- a/helpcompiler/source/HelpIndexer_main.cxx
+++ b/helpcompiler/source/HelpIndexer_main.cxx
@@ -20,9 +20,9 @@ int main(int argc, char **argv)
{
try
{
- const std::string pLang("-lang");
- const std::string pModule("-mod");
- const std::string pDir("-dir");
+ const std::string aLang("-lang");
+ const std::string aModule("-mod");
+ const std::string aDir("-dir");
std::string lang;
std::string module;
@@ -30,19 +30,19 @@ int main(int argc, char **argv)
bool error = false;
for (int i = 1; i < argc; ++i) {
- if (pLang.compare(argv[i]) == 0) {
+ if (aLang.compare(argv[i]) == 0) {
if (i + 1 < argc) {
lang = argv[++i];
} else {
error = true;
}
- } else if (pModule.compare(argv[i]) == 0) {
+ } else if (aModule.compare(argv[i]) == 0) {
if (i + 1 < argc) {
module = argv[++i];
} else {
error = true;
}
- } else if (pDir.compare(argv[i]) == 0) {
+ } else if (aDir.compare(argv[i]) == 0) {
if (i + 1 < argc) {
dir = argv[++i];
} else {