summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-24 10:49:28 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 10:51:22 +0200
commit858e455634ebfff8ef7b65a9c97d3bc8240cd094 (patch)
tree688dd5dbe73ee53ef4b84124632e045045b404d1 /writerperfect
parenta6df3c0babf409d8fc0bf52efd9c2fa74a95998e (diff)
loplugin:constantfunction: various
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/common/DirectoryStream.cxx10
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()
{