Resolve trivial DispatchList typedef
Change-Id: I5a304701aed843f6cdbffcdcf6e04255453f0f48
This commit is contained in:
@@ -180,7 +180,7 @@ DispatchWatcher::~DispatchWatcher()
|
||||
}
|
||||
|
||||
|
||||
bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequestsList, bool bNoTerminate )
|
||||
bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest>& aDispatchRequestsList, bool bNoTerminate )
|
||||
{
|
||||
Reference< XDesktop2 > xDesktop = css::frame::Desktop::create( ::comphelper::getProcessComponentContext() );
|
||||
|
||||
|
@@ -68,8 +68,6 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu
|
||||
OUString aPreselectedFactory;
|
||||
};
|
||||
|
||||
typedef std::vector< DispatchRequest > DispatchList;
|
||||
|
||||
DispatchWatcher();
|
||||
|
||||
virtual ~DispatchWatcher();
|
||||
@@ -82,7 +80,7 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu
|
||||
virtual void SAL_CALL dispatchFinished( const css::frame::DispatchResultEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
|
||||
|
||||
// execute new dispatch request
|
||||
bool executeDispatchRequests( const DispatchList& aDispatches, bool bNoTerminate = false );
|
||||
bool executeDispatchRequests( const std::vector<DispatchRequest>& aDispatches, bool bNoTerminate = false );
|
||||
|
||||
private:
|
||||
osl::Mutex m_mutex;
|
||||
|
@@ -986,7 +986,7 @@ void OfficeIPCThread::execute()
|
||||
}
|
||||
|
||||
static void AddToDispatchList(
|
||||
DispatchWatcher::DispatchList& rDispatchList,
|
||||
std::vector<DispatchWatcher::DispatchRequest>& rDispatchList,
|
||||
boost::optional< OUString > const & cwdUrl,
|
||||
std::vector< OUString > const & aRequestList,
|
||||
DispatchWatcher::RequestType nType,
|
||||
@@ -1002,7 +1002,7 @@ static void AddToDispatchList(
|
||||
}
|
||||
|
||||
static void AddConversionsToDispatchList(
|
||||
DispatchWatcher::DispatchList& rDispatchList,
|
||||
std::vector<DispatchWatcher::DispatchRequest>& rDispatchList,
|
||||
boost::optional< OUString > const & cwdUrl,
|
||||
std::vector< OUString > const & rRequestList,
|
||||
const OUString& rParam,
|
||||
@@ -1057,7 +1057,7 @@ bool OfficeIPCThread::ExecuteCmdLineRequests( ProcessDocumentsRequest& aRequest
|
||||
// protect the dispatch list
|
||||
osl::ClearableMutexGuard aGuard( GetMutex() );
|
||||
|
||||
static DispatchWatcher::DispatchList aDispatchList;
|
||||
static std::vector<DispatchWatcher::DispatchRequest> aDispatchList;
|
||||
|
||||
// Create dispatch list for dispatch watcher
|
||||
AddToDispatchList( aDispatchList, aRequest.aCwdUrl, aRequest.aInFilter, DispatchWatcher::REQUEST_INFILTER, "", aRequest.aModule );
|
||||
@@ -1083,7 +1083,7 @@ bool OfficeIPCThread::ExecuteCmdLineRequests( ProcessDocumentsRequest& aRequest
|
||||
}
|
||||
|
||||
// copy for execute
|
||||
DispatchWatcher::DispatchList aTempList( aDispatchList );
|
||||
std::vector<DispatchWatcher::DispatchRequest> aTempList( aDispatchList );
|
||||
aDispatchList.clear();
|
||||
|
||||
aGuard.clear();
|
||||
|
Reference in New Issue
Block a user