summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-05-17 14:05:08 +0200
committerDavid Tardon <dtardon@redhat.com>2015-05-17 14:05:39 +0200
commitdc65b0242544a7d4c22c6fcf473dafb3e2d41121 (patch)
treeb5110d4da74ee3e7b59c866561f64729eecaacf0
parent773bb53d0b672fbb6b274e45f35228c9427d7fb4 (diff)
astyle
Change-Id: I733f1f777bbe30f3ce8b15b60fe56b8dba240ffd
-rw-r--r--writerperfect/source/common/DirectoryStream.cxx64
1 files changed, 32 insertions, 32 deletions
diff --git a/writerperfect/source/common/DirectoryStream.cxx b/writerperfect/source/common/DirectoryStream.cxx
index e5150e10d0ad..b0ff9c43bb6c 100644
--- a/writerperfect/source/common/DirectoryStream.cxx
+++ b/writerperfect/source/common/DirectoryStream.cxx
@@ -117,50 +117,50 @@ DirectoryStream::~DirectoryStream()
DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent)
{
-try
-{
- if (!xContent.is())
- return 0;
+ try
+ {
+ if (!xContent.is())
+ return 0;
- DirectoryStream *pDir(0);
+ DirectoryStream *pDir(0);
- const uno::Reference<container::XChild> xChild(xContent, uno::UNO_QUERY);
- if (xChild.is())
- {
- const uno::Reference<ucb::XContent> xDirContent(xChild->getParent(), uno::UNO_QUERY);
- if (xDirContent.is())
+ const uno::Reference<container::XChild> xChild(xContent, uno::UNO_QUERY);
+ if (xChild.is())
{
- pDir = new writerperfect::DirectoryStream(xDirContent);
- if (!pDir->isStructured())
+ const uno::Reference<ucb::XContent> xDirContent(xChild->getParent(), uno::UNO_QUERY);
+ if (xDirContent.is())
{
- delete pDir;
- pDir = 0;
+ pDir = new writerperfect::DirectoryStream(xDirContent);
+ if (!pDir->isStructured())
+ {
+ delete pDir;
+ pDir = 0;
+ }
}
}
- }
- return pDir;
-}
-catch (...)
-{
- return 0;
-}
+ return pDir;
+ }
+ catch (...)
+ {
+ return 0;
+ }
}
bool DirectoryStream::isDirectory(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent)
{
-try
-{
- if (!xContent.is())
- return false;
+ try
+ {
+ if (!xContent.is())
+ return false;
- ucbhelper::Content aContent(xContent, uno::Reference<ucb::XCommandEnvironment>(), comphelper::getProcessComponentContext());
- return aContent.isFolder();
-}
-catch (...)
-{
- return false;
-}
+ ucbhelper::Content aContent(xContent, uno::Reference<ucb::XCommandEnvironment>(), comphelper::getProcessComponentContext());
+ return aContent.isFolder();
+ }
+ catch (...)
+ {
+ return false;
+ }
}
bool DirectoryStream::isStructured()