summaryrefslogtreecommitdiffstats
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-30 14:28:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-31 10:59:40 +0100
commit553fcbbb39a674df34475fc92a1ee3410d68c215 (patch)
treea2b5d19157543f465b916fb1a799fe13ad3fa6ca /fpicker
parentSimplify containers iterations in sc/source/core/[o-t]* (diff)
downloadcore-553fcbbb39a674df34475fc92a1ee3410d68c215.tar.gz
core-553fcbbb39a674df34475fc92a1ee3410d68c215.zip
loplugin:unnecessaryparen (clang-cl)
Change-Id: I0cd14e0ace9c9d2fcd880477b0485295e3010b71 Reviewed-on: https://gerrit.libreoffice.org/67138 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/VistaFilePickerImpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/win32/VistaFilePickerImpl.cxx b/fpicker/source/win32/VistaFilePickerImpl.cxx
index d404e71b71d4..368af5562fbd 100644
--- a/fpicker/source/win32/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/VistaFilePickerImpl.cxx
@@ -425,7 +425,7 @@ void VistaFilePickerImpl::impl_sta_getCurrentFilter(const RequestRef& rRequest)
::osl::ResettableMutexGuard aLock(m_aMutex);
OUString sTitle;
- ::sal_Int32 nRealIndex = (nIndex-1); // COM dialog base on 1 ... filter container on 0 .-)
+ ::sal_Int32 nRealIndex = nIndex-1; // COM dialog base on 1 ... filter container on 0 .-)
if (
(nRealIndex >= 0 ) &&
(m_lFilters.getFilterNameByIndex(nRealIndex, sTitle))
@@ -1002,7 +1002,7 @@ void VistaFilePickerImpl::impl_sta_ShowDialogModal(const RequestRef& rRequest)
if ( SUCCEEDED(hResult) && nFileType > 0 )
{
// COM dialog base on 1 ... filter container on 0 .-)
- ::size_t nRealIndex = (nFileType-1);
+ ::size_t nRealIndex = nFileType-1;
OUString sFilter;
if (m_lFilters.getFilterByIndex(nRealIndex, sFilter))
{