Kaydet (Commit) 62667aac authored tarafından Arkadiy Illarionov's avatar Arkadiy Illarionov Kaydeden (comit) Tor Lillqvist

tdf#96099 Remove some trivial std::vector typedefs

Change-Id: I21171bd90b5e19fe8e5b8f2d125b6dfcb9a8b766
Reviewed-on: https://gerrit.libreoffice.org/55198Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 10da3d81
......@@ -333,7 +333,7 @@ void OKeySet::ensureStatement( )
{
// do we already have a statement for the current combination of NULLness
// of key & foreign columns?
FilterColumnsNULL_t FilterColumnsNULL;
std::vector<bool> FilterColumnsNULL;
FilterColumnsNULL.reserve(m_aKeyIter->second.first->get().size());
for (auto const& elem : m_aKeyIter->second.first->get())
FilterColumnsNULL.push_back(elem.isNull());
......
......@@ -93,8 +93,7 @@ namespace dbaccess
// of NULLness of key & foreign columns;
// each subclause is either "colName = ?" or "colName IS NULL"
// (we avoid the standard "colName IS NOT DISTINCT FROM ?" because it is not widely supported)
typedef std::vector< bool > FilterColumnsNULL_t;
typedef std::map< FilterColumnsNULL_t,
typedef std::map< std::vector<bool>,
css::uno::Reference< css::sdbc::XPreparedStatement > >
vStatements_t;
vStatements_t m_vStatements;
......
......@@ -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++)
{
......
......@@ -635,12 +635,10 @@ bool BibGeneralPage::HandleShortCutKey( const KeyEvent& rKeyEvent )
sal_Int16 i;
typedef std::vector< sal_Int16 > sal_Int16_vector;
sal_Int16_vector::size_type nFocused = 0xFFFF; // index of focused in vector, no one focused initial
std::vector<sal_Int16>::size_type nFocused = 0xFFFF; // index of focused in vector, no one focused initial
DBG_ASSERT( nFocused > 0, "*BibGeneralPage::HandleShortCutKey(): size_type works not as expected!" );
sal_Int16_vector aMatchList;
std::vector<sal_Int16> aMatchList;
for( i = 0 ; i < FIELD_COUNT ; ++i )
{
......
......@@ -381,8 +381,7 @@ private:
/** holds the information of the objects defined in the movie stream
while executing defineShape
*/
typedef std::vector<sal_uInt16> CharacterIdVector;
CharacterIdVector maShapeIds;
std::vector<sal_uInt16> maShapeIds;
std::unique_ptr<Tag> mpTag;
std::unique_ptr<Sprite> mpSprite;
......
......@@ -161,7 +161,7 @@ void OComponentEventThread::run()
Reference<XAdapter> xControlAdapter = *firstControl;
m_aControls.erase( firstControl );
ThreadBools::iterator firstFlag( m_aFlags.begin() );
auto firstFlag( m_aFlags.begin() );
bool bFlag = *firstFlag;
m_aFlags.erase( firstFlag );
......
......@@ -50,13 +50,12 @@ class OComponentEventThread
{
typedef std::vector<css::lang::EventObject*> ThreadEvents;
typedef std::vector< css::uno::Reference< css::uno::XAdapter> > ThreadObjects;
typedef std::vector<bool> ThreadBools;
::osl::Mutex m_aMutex;
::osl::Condition m_aCond; // Queue filled?
ThreadEvents m_aEvents; // EventQueue
ThreadObjects m_aControls; // Control for Submit
ThreadBools m_aFlags; // Flags for Submit/Reset
std::vector<bool> m_aFlags; // Flags for Submit/Reset
rtl::Reference<::cppu::OComponentHelper> m_xComp; // Implementation of the Control
......
......@@ -345,8 +345,7 @@ namespace frm
const ToolBox::ImplToolItems::size_type nItemCount = m_pToolbar->GetItemCount();
// collect the FormFeatures in the toolbar
typedef ::std::vector< sal_Int16 > FormFeatures;
FormFeatures aFormFeatures;
std::vector<sal_Int16> aFormFeatures;
aFormFeatures.reserve( nItemCount );
for ( ToolBox::ImplToolItems::size_type i=0; i<nItemCount; ++i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment