summaryrefslogtreecommitdiff
path: root/dtrans/source/win32
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-06-01 22:59:47 +0300
committerTor Lillqvist <tml@collabora.com>2018-06-03 09:38:42 +0200
commit62667aac83bd743fa98a5eaa946cc8088335f66c (patch)
treeaf4442622bdf7d417a55e69c72d2fe44bfd18f17 /dtrans/source/win32
parent10da3d817afd3f5d5c4f84cb814d56efc0678d43 (diff)
tdf#96099 Remove some trivial std::vector typedefs
Change-Id: I21171bd90b5e19fe8e5b8f2d125b6dfcb9a8b766 Reviewed-on: https://gerrit.libreoffice.org/55198 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'dtrans/source/win32')
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index f8d04091a368..ee3d4f12cb2d 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -336,12 +336,11 @@ std::wstring getShellLinkTarget(const std::wstring& aLnkFile)
return target;
}
-typedef std::vector<std::wstring> FileList_t;
typedef Sequence<sal_Int8> ByteSequence_t;
/* Calculate the size required for turning a string list into
a double '\0' terminated string buffer */
-size_t CalcSizeForStringListBuffer(const FileList_t& fileList)
+size_t CalcSizeForStringListBuffer(const std::vector<std::wstring>& fileList)
{
if ( fileList.empty() )
return 0;
@@ -351,10 +350,10 @@ size_t CalcSizeForStringListBuffer(const FileList_t& fileList)
{
size += elem.length() + 1; // length including terminating '\0'
}
- return (size * sizeof(FileList_t::value_type::value_type));
+ return (size * sizeof(std::vector<std::wstring>::value_type::value_type));
}
-ByteSequence_t FileListToByteSequence(const FileList_t& fileList)
+ByteSequence_t FileListToByteSequence(const std::vector<std::wstring>& fileList)
{
ByteSequence_t bseq;
size_t size = CalcSizeForStringListBuffer(fileList);
@@ -377,7 +376,7 @@ ByteSequence_t FileListToByteSequence(const FileList_t& fileList)
ByteSequence_t CF_HDROPToFileList(HGLOBAL hGlobal)
{
UINT nFiles = DragQueryFileW(static_cast<HDROP>(hGlobal), 0xFFFFFFFF, nullptr, 0);
- FileList_t files;
+ std::vector<std::wstring> files;
for (UINT i = 0; i < nFiles; i++)
{