Kaydet (Commit) 1290a408 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Create DispatchRequest via list-initialization

Change-Id: Ic1fc17b028281e64290c6c1d25bbd94fbf27251d
üst 2cc88911
...@@ -58,9 +58,6 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu ...@@ -58,9 +58,6 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu
struct DispatchRequest struct DispatchRequest
{ {
DispatchRequest( RequestType aType, const OUString& aFile, boost::optional< OUString > const & cwdUrl, const OUString& aPrinter, const OUString& aFact ) :
aRequestType( aType ), aURL( aFile ), aCwdUrl( cwdUrl ), aPrinterName( aPrinter ), aPreselectedFactory( aFact ) {}
RequestType aRequestType; RequestType aRequestType;
OUString aURL; OUString aURL;
boost::optional< OUString > aCwdUrl; boost::optional< OUString > aCwdUrl;
......
...@@ -996,8 +996,7 @@ static void AddToDispatchList( ...@@ -996,8 +996,7 @@ static void AddToDispatchList(
for (std::vector< OUString >::const_iterator i(aRequestList.begin()); for (std::vector< OUString >::const_iterator i(aRequestList.begin());
i != aRequestList.end(); ++i) i != aRequestList.end(); ++i)
{ {
rDispatchList.push_back( rDispatchList.push_back({nType, *i, cwdUrl, aParam, aFactory});
DispatchWatcher::DispatchRequest( nType, *i, cwdUrl, aParam, aFactory ));
} }
} }
...@@ -1046,8 +1045,7 @@ static void AddConversionsToDispatchList( ...@@ -1046,8 +1045,7 @@ static void AddConversionsToDispatchList(
for (std::vector< OUString >::const_iterator i(rRequestList.begin()); for (std::vector< OUString >::const_iterator i(rRequestList.begin());
i != rRequestList.end(); ++i) i != rRequestList.end(); ++i)
{ {
rDispatchList.push_back( rDispatchList.push_back({nType, *i, cwdUrl, aParam, rFactory});
DispatchWatcher::DispatchRequest( nType, *i, cwdUrl, aParam, rFactory ));
} }
} }
......
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