diff options
author | Sumit Chauhan <sumitcn25@gmail.com> | 2019-06-14 02:30:48 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-06-14 08:20:43 +0200 |
commit | e598440a946ba3e7785b81f57a36673f7b88db2e (patch) | |
tree | 358d77bfc8ddd909d87e8d5a55a1d789749c9623 /vcl | |
parent | d563059b5177f9640e1ca6a36709f1b2c5a6b363 (diff) |
Refactoring - Converting private methods to static non-member methods
Related Patch: https://gerrit.libreoffice.org/#/c/72313/
Change-Id: I3f30b4abe87f16e94d7c29bf9b9413b59b825e5e
Reviewed-on: https://gerrit.libreoffice.org/73986
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/notebookbar.cxx | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx index 1865af605799..7a3a70370497 100644 --- a/vcl/source/control/notebookbar.cxx +++ b/vcl/source/control/notebookbar.cxx @@ -16,8 +16,25 @@ #include <comphelper/processfactory.hxx> #include <vcl/vclevent.hxx> #include <rtl/bootstrap.hxx> +#include <osl/file.hxx> #include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp> + +static OUString getCustomizedUIRootDir() +{ + OUString sShareLayer("$BRAND_BASE_DIR/user/config/soffice.cfg/"); + rtl::Bootstrap::expandMacros(sShareLayer); + return sShareLayer; +} + +static bool doesFileExist(const OUString& sUIDir, const OUString& sUIFile) +{ + OUString sUri = sUIDir + sUIFile; + osl::File file(sUri); + sal_uInt32 flag = 0; + return( file.open(flag) == osl::FileBase::E_None ); +} + /** * split from the main class since it needs different ref-counting mana */ @@ -257,18 +274,4 @@ void NotebookBar::UpdatePersonaSettings() PersonaSettings = aAllSettings; } -OUString NotebookBar::getCustomizedUIRootDir() -{ - OUString sShareLayer("$BRAND_BASE_DIR/user/config/soffice.cfg/"); - rtl::Bootstrap::expandMacros(sShareLayer); - return sShareLayer; -} - -bool NotebookBar::doesFileExist(const OUString& sUIDir, const OUString& sUIFile) -{ - OUString sUri = sUIDir + sUIFile; - osl::File file(sUri); - sal_uInt32 flag = 0; - return( file.open(flag) == osl::FileBase::E_None ); -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |