summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/WordPerfectImportFilter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-30 10:00:10 +0200
committerNoel Grandin <noel@peralex.com>2014-05-02 08:49:20 +0200
commita86ad4d11c7789dcf7fede31b0ff391f151dbf47 (patch)
treec0e49c4cd9e361dae1a13500b75a943588333a60 /writerperfect/source/writer/WordPerfectImportFilter.cxx
parent19d35573fa0757ecac0163e6aff8d2cad1c61264 (diff)
writerperfect: sal_Bool->bool
Change-Id: Ic51f9ed2c2c2fced13c8b279912410f9c1638ff9
Diffstat (limited to 'writerperfect/source/writer/WordPerfectImportFilter.cxx')
-rw-r--r--writerperfect/source/writer/WordPerfectImportFilter.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx
index 605a1eb37040..9a268be0451f 100644
--- a/writerperfect/source/writer/WordPerfectImportFilter.cxx
+++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx
@@ -85,7 +85,7 @@ static bool handleEmbeddedWPGImage(const WPXBinaryData &input, WPXBinaryData &ou
return true;
}
-sal_Bool SAL_CALL WordPerfectImportFilter::importImpl( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
+bool SAL_CALL WordPerfectImportFilter::importImpl( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
throw (RuntimeException)
{
SAL_INFO("writerperfect", "WordPerfectImportFilter::importImpl");
@@ -101,7 +101,7 @@ throw (RuntimeException)
if ( !xInputStream.is() )
{
OSL_ASSERT( false );
- return sal_False;
+ return false;
}
WPXSvInputStream input( xInputStream );
@@ -118,7 +118,7 @@ throw (RuntimeException)
SfxPasswordDialog aPasswdDlg( 0 );
aPasswdDlg.SetMinLen(0);
if(!aPasswdDlg.Execute())
- return sal_False;
+ return false;
OUString aPasswd = aPasswdDlg.GetPassword();
aUtf8Passwd = OUStringToOString(aPasswd, RTL_TEXTENCODING_UTF8);
if (WPD_PASSWORD_MATCH_OK == WPDocument::verifyPassword(&input, aUtf8Passwd.getStr()))
@@ -126,7 +126,7 @@ throw (RuntimeException)
else
unsuccessfulAttempts++;
if (unsuccessfulAttempts == 3) // timeout after 3 password atempts
- return sal_False;
+ return false;
}
}
@@ -148,8 +148,8 @@ throw (RuntimeException)
collector.registerEmbeddedObjectHandler("image/x-wpg", &handleEmbeddedWPGObject);
collector.registerEmbeddedImageHandler("image/x-wpg", &handleEmbeddedWPGImage);
if (WPD_OK == WPDocument::parse(&input, &collector, aUtf8Passwd.isEmpty() ? 0 : aUtf8Passwd.getStr()))
- return sal_True;
- return sal_False;
+ return true;
+ return false;
}
sal_Bool SAL_CALL WordPerfectImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )