diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-24 10:49:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 10:51:22 +0200 |
commit | 858e455634ebfff8ef7b65a9c97d3bc8240cd094 (patch) | |
tree | 688dd5dbe73ee53ef4b84124632e045045b404d1 /writerperfect | |
parent | fix windows build (diff) | |
download | core-858e455634ebfff8ef7b65a9c97d3bc8240cd094.tar.gz core-858e455634ebfff8ef7b65a9c97d3bc8240cd094.zip |
loplugin:constantfunction: various
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/DirectoryStream.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/writerperfect/source/common/DirectoryStream.cxx b/writerperfect/source/common/DirectoryStream.cxx index 41d6591f1f49..e5150e10d0ad 100644 --- a/writerperfect/source/common/DirectoryStream.cxx +++ b/writerperfect/source/common/DirectoryStream.cxx @@ -115,7 +115,9 @@ DirectoryStream::~DirectoryStream() delete m_pImpl; } -DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent) try +DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent) +{ +try { if (!xContent.is()) return 0; @@ -143,8 +145,11 @@ catch (...) { return 0; } +} -bool DirectoryStream::isDirectory(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent) try +bool DirectoryStream::isDirectory(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent) +{ +try { if (!xContent.is()) return false; @@ -156,6 +161,7 @@ catch (...) { return false; } +} bool DirectoryStream::isStructured() { |