diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-15 15:24:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-17 17:55:17 +0100 |
commit | 361774e9107aac3f412ce546892a4b0e55c10dfb (patch) | |
tree | 4558fb6362cd1767c0a5ca00a80584171f7106b8 /idlc/source/idlcproduce.cxx | |
parent | registry: sal_Bool -> bool (diff) | |
download | core-361774e9107aac3f412ce546892a4b0e55c10dfb.tar.gz core-361774e9107aac3f412ce546892a4b0e55c10dfb.zip |
idlc: sal_Bool -> bool
Change-Id: Ibeed903d73eb8b3fce7b8c6021c9107437a8c813
Diffstat (limited to 'idlc/source/idlcproduce.cxx')
-rw-r--r-- | idlc/source/idlcproduce.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index 5eaacbe0c6b1..cfc093c4227f 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -42,13 +42,13 @@ using namespace ::osl; StringList* pCreatedDirectories = NULL; -static sal_Bool checkOutputPath(const OString& completeName) +static bool checkOutputPath(const OString& completeName) { OString sysPathName = convertToAbsoluteSystemPath(completeName); OStringBuffer buffer(sysPathName.getLength()); if ( sysPathName.indexOf( SEPARATOR ) == -1 ) - return sal_True; + return true; sal_Int32 nIndex = 0; OString token(sysPathName.getToken(0, SEPARATOR, nIndex)); @@ -79,7 +79,7 @@ static sal_Bool checkOutputPath(const OString& completeName) { fprintf(stderr, "%s: cannot create directory '%s'\n", idlc()->getOptions()->getProgramName().getStr(), buffer.getStr()); - return sal_False; + return false; } } else { @@ -90,10 +90,10 @@ static sal_Bool checkOutputPath(const OString& completeName) } buffer.append(SEPARATOR); } while( nIndex != -1 ); - return sal_True; + return true; } -static sal_Bool cleanPath() +static bool cleanPath() { if ( pCreatedDirectories ) { @@ -109,13 +109,13 @@ static sal_Bool cleanPath() { fprintf(stderr, "%s: cannot remove directory '%s'\n", idlc()->getOptions()->getProgramName().getStr(), (*iter).getStr()); - return sal_False; + return false; } ++iter; } delete pCreatedDirectories; } - return sal_True; + return true; } void removeIfExists(const OString& pathname) |