summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basobj2.cxx
diff options
context:
space:
mode:
authorUray M. János <uray.janos@gmail.com>2012-08-07 08:36:40 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-08-07 11:01:01 +0300
commit13b9c0513319623fd56a5a0ead5bdddecf90a10f (patch)
tree0e20a62643c2c44023222bcc63b451c7c4b6947a /basctl/source/basicide/basobj2.cxx
parent67f688b97aa5afde455674dbe28297a89d817503 (diff)
IDE: sal_Bool to bool
Convert all occurences of sal_Bool, sal_True and sal_False in basctl to bool, true and false -- except in prototypes of virtual function overrides. (The virtual functions that are internal to basctl can be and was converted.) Note that since sal_Bool and bool are implicitly convertible to each other, for functions that take a sal_Bool (by value), true and false can be given too. Change-Id: Ie44740fa87f89e9fedd913840ca2b38e95e6b957
Diffstat (limited to 'basctl/source/basicide/basobj2.cxx')
-rw-r--r--basctl/source/basicide/basobj2.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index e4323599ac25..01df2eac19c1 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -93,19 +93,21 @@ void Organize( sal_Int16 tabId )
//----------------------------------------------------------------------------
-sal_Bool IsValidSbxName( const String& rName )
+bool IsValidSbxName( const String& rName )
{
for ( sal_uInt16 nChar = 0; nChar < rName.Len(); nChar++ )
{
sal_Unicode c = rName.GetChar(nChar);
- sal_Bool bValid = ( ( c >= 'A' && c <= 'Z' ) ||
- ( c >= 'a' && c <= 'z' ) ||
- ( c >= '0' && c <= '9' && nChar ) ||
- ( c == '_' ) );
+ bool bValid = (
+ ( c >= 'A' && c <= 'Z' ) ||
+ ( c >= 'a' && c <= 'z' ) ||
+ ( c >= '0' && c <= '9' && nChar ) ||
+ ( c == '_' )
+ );
if ( !bValid )
- return sal_False;
+ return false;
}
- return sal_True;
+ return true;
}
static bool StringCompareLessThan( const String& rStr1, const String& rStr2 )
@@ -259,7 +261,7 @@ namespace
//----------------------------------------------------------------------------
-::rtl::OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, sal_Bool bChooseOnly, const ::rtl::OUString& rMacroDesc )
+::rtl::OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, bool bChooseOnly, const ::rtl::OUString& rMacroDesc )
{
(void)rMacroDesc;