summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-15 16:49:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-17 17:55:18 +0100
commita450e0eea2d06ca0a9148c0de083e17566ac27de (patch)
treef2773f5b2461fd4787ab7d6f62d7988a3ffaaad9 /unodevtools
parent361774e9107aac3f412ce546892a4b0e55c10dfb (diff)
unodevtools: sal_Bool -> bool
Change-Id: Ie62a7d184f4982a5164c183f6e38d534b94df1bd
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/inc/unodevtools/options.hxx4
-rw-r--r--unodevtools/source/unodevtools/options.cxx18
2 files changed, 11 insertions, 11 deletions
diff --git a/unodevtools/inc/unodevtools/options.hxx b/unodevtools/inc/unodevtools/options.hxx
index 398b677a5c04..42e765e8eed9 100644
--- a/unodevtools/inc/unodevtools/options.hxx
+++ b/unodevtools/inc/unodevtools/options.hxx
@@ -27,12 +27,12 @@
namespace unodevtools {
//-------------------------------------------------------------------------------
-sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
+bool readOption( OUString * pValue, const sal_Char * pOpt,
sal_uInt32 * pnIndex, const OUString & aArg);
// throws CannotDumpException
//-------------------------------------------------------------------------------
-sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
+bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
sal_uInt32 * pnIndex, const OUString & aArg);
} // end of namespace unodevtools
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx
index 7790a27245df..915ac84a27dc 100644
--- a/unodevtools/source/unodevtools/options.cxx
+++ b/unodevtools/source/unodevtools/options.cxx
@@ -36,17 +36,17 @@ static void out( const sal_Char * pText )
#endif
//-------------------------------------------------------------------------------
-sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
+bool readOption( OUString * pValue, const sal_Char * pOpt,
sal_uInt32 * pnIndex, const OUString & aArg)
{
const OUString dash = "-";
if(aArg.indexOf(dash) != 0)
- return sal_False;
+ return false;
OUString aOpt = OUString::createFromAscii( pOpt );
if (aArg.getLength() < aOpt.getLength())
- return sal_False;
+ return false;
if (aOpt.equalsIgnoreAsciiCase( aArg.copy(1) )) {
// take next argument
@@ -67,7 +67,7 @@ sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
out( tmp.getStr() );
#endif
++(*pnIndex);
- return sal_True;
+ return true;
}
} else if (aArg.indexOf(aOpt) == 1) {
*pValue = aArg.copy(1 + aOpt.getLength());
@@ -80,13 +80,13 @@ sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
#endif
++(*pnIndex);
- return sal_True;
+ return true;
}
- return sal_False;
+ return false;
}
//-------------------------------------------------------------------------------
-sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
+bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
sal_uInt32 * pnIndex, const OUString & aArg)
{
const OUString dashdash("--");
@@ -102,9 +102,9 @@ sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
out( "\n> identified option --" );
out( pOpt );
#endif
- return sal_True;
+ return true;
}
- return sal_False;
+ return false;
}
} // end of namespace unodevtools