summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/folderpicker/MtaFop.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 19:05:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 19:05:38 +0100
commit5b37ec6eb19ec2bd5020b54197cd554f1b645a4f (patch)
treedd875c5f8229345167fd1825e04ba33ecd1a2419 /fpicker/source/win32/folderpicker/MtaFop.cxx
parent1041bc88ec7fb83aaa228c97dafd6c0ac75dd1e0 (diff)
loplugin:useuniqueptr
CMtaFolderPicker resp. its only derived class CWinFolderPickerImpl is only ever instantiated on the heap, so no harm in having that array directly as a member. Change-Id: I23312e34d3377a46b95a7ee059a2dbbf8f937422
Diffstat (limited to 'fpicker/source/win32/folderpicker/MtaFop.cxx')
-rw-r--r--fpicker/source/win32/folderpicker/MtaFop.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx
index 595711e9bb90..3bd3f519672b 100644
--- a/fpicker/source/win32/folderpicker/MtaFop.cxx
+++ b/fpicker/source/win32/folderpicker/MtaFop.cxx
@@ -367,7 +367,7 @@ bool SAL_CALL CMtaFolderPicker::onBrowseForFolder( )
// pre SHBrowseFroFolder
m_bi.pidlRoot = nullptr;
- m_bi.pszDisplayName = reinterpret_cast<LPWSTR>(m_pathBuff.get());
+ m_bi.pszDisplayName = reinterpret_cast<LPWSTR>(m_pathBuff);
if ( m_Description.getLength( ) )
m_bi.lpszTitle = reinterpret_cast<LPCWSTR>(m_Description.getStr( ));
@@ -428,9 +428,9 @@ OUString SAL_CALL CMtaFolderPicker::getPathFromItemIdList( LPCITEMIDLIST lpItemI
if ( lpItemIdList )
{
- bool bRet = SHGetPathFromIDListW( lpItemIdList, reinterpret_cast<LPWSTR>(m_pathBuff.get()) );
+ bool bRet = SHGetPathFromIDListW( lpItemIdList, reinterpret_cast<LPWSTR>(m_pathBuff) );
if ( bRet )
- path = m_pathBuff.get( );
+ path = m_pathBuff;
}
return path;