Skip to content

Commit 0099c59

Browse files
authored
Merge pull request #1962 from jwillemsen/jwi-layoutreturn
Layout/return changes
2 parents a07b960 + 99f6623 commit 0099c59

File tree

303 files changed

+903
-1332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+903
-1332
lines changed

TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,8 @@ Connection_Manager::add_streamctrl (const ACE_CString &flowname,
570570
if( streamctrl_any.in() >>= streamctrl )
571571
{
572572
// Any still owns the pointer, so we duplicate it
573-
AVStreams::StreamCtrl::_duplicate( streamctrl );
574-
this->streamctrls_.bind (flowname,
575-
streamctrl);
573+
AVStreams::StreamCtrl::_duplicate( streamctrl);
574+
this->streamctrls_.bind (flowname, streamctrl);
576575
}
577576
}
578577

@@ -582,7 +581,7 @@ Connection_Manager::destroy (const ACE_CString &flowname)
582581
this->protocol_objects_.unbind (flowname);
583582
this->receivers_.unbind (flowname);
584583

585-
this->streamctrls_.unbind (flowname );
584+
this->streamctrls_.unbind (flowname);
586585
}
587586

588587
Connection_Manager::Receivers &

TAO/orbsvcs/tests/AVStreams/Component_Switching/Connection_Manager.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,9 @@ Connection_Manager::add_streamctrl (const ACE_CString &flowname,
394394
{
395395
// the CORBA::Any_var owns the pointer, so we should
396396
// _duplicate it before passing it around
397-
AVStreams::StreamCtrl::_duplicate( streamctrl );
397+
AVStreams::StreamCtrl::_duplicate( streamctrl);
398398
this->streamctrls_.unbind(flowname);
399-
this->streamctrls_.bind (flowname,
400-
streamctrl);
399+
this->streamctrls_.bind (flowname, streamctrl);
401400
}
402401
}
403402

TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ Client::init (int argc, ACE_TCHAR *argv[])
224224
this->parse_args (this->argc_, this->argv_);
225225

226226
ACE_NEW_RETURN (this->streamendpoint_a_,
227-
TAO_StreamEndPoint_A, -1 );
227+
TAO_StreamEndPoint_A, -1);
228228

229-
ACE_NEW_RETURN (this->fep_a_, FTP_Client_Producer, -1 );
229+
ACE_NEW_RETURN (this->fep_a_, FTP_Client_Producer, -1);
230230
this->flowname_ = "Data";
231231

232232
sep_a_ = this->streamendpoint_a_->_this();
@@ -291,7 +291,7 @@ Client::run ()
291291

292292

293293
CORBA::Object_var obj_b = this->orb_->string_to_object("corbaname:rir:#Server_StreamEndPoint_b");
294-
AVStreams::StreamEndPoint_B_var sep_b = AVStreams::StreamEndPoint_B::_narrow ( obj_b.in() );
294+
AVStreams::StreamEndPoint_B_var sep_b = AVStreams::StreamEndPoint_B::_narrow (obj_b.in());
295295

296296
CORBA::Boolean result =
297297
this->streamctrl_.bind (sep_a_.in(),

TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Server::init (int argc,
123123

124124
fep_b_obj_ = this->fep_b_->_this ();
125125

126-
CORBA::String_var s1 = sep_b_->add_fep( fep_b_obj_.in() );
126+
CORBA::String_var s1 = sep_b_->add_fep( fep_b_obj_.in());
127127

128128
ACE_DEBUG ((LM_DEBUG, "(%N,%l) Added flowendpoint named: %C\n", s1.in() ));
129129

TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
178178
mmdevice->add_fdev (pong_fdev.in ());
179179
}
180180

181-
orb->run ( );
181+
orb->run ();
182182

183183
ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
184184

TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ Server::run ()
125125
CORBA::Boolean wp = orb->work_pending ();
126126
if (wp)
127127
{
128-
orb->perform_work( );
128+
orb->perform_work();
129129
}
130130
}
131131

132-
orb->shutdown( 1 );
132+
orb->shutdown(true);
133133
}
134134
catch (const CORBA::Exception& ex)
135135
{

TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
187187

188188
while ( !done )
189189
{
190-
if ( orb->work_pending( ) )
190+
if ( orb->work_pending())
191191
{
192192
orb->perform_work ();
193193
}
194194
}
195195

196-
orb->shutdown( 1 );
196+
orb->shutdown(1);
197197
}
198198
catch (const CORBA::Exception& ex)
199199
{

TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ORB_Task::svc ()
2020
{
2121
CORBA::Object_var ncRef =
2222
orb_->string_to_object(
23-
"corbaloc:iiop:10.175.12.99:15025/NameService" );
23+
"corbaloc:iiop:10.175.12.99:15025/NameService");
2424

2525
CORBA::PolicyList policies;
2626

@@ -31,16 +31,15 @@ ORB_Task::svc ()
3131

3232
policies.length(1);
3333
policies[0] = orb_->create_policy(
34-
Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE,
35-
timeoutAny );
34+
Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE, timeoutAny);
3635

3736
CORBA::Object_var object = ncRef->_set_policy_overrides(
3837
policies, CORBA::SET_OVERRIDE );
3938

4039
policies[0]->destroy();
4140

4241
CosNaming::NamingContext_var namingContext =
43-
CosNaming::NamingContext::_narrow( object.in() );
42+
CosNaming::NamingContext::_narrow( object.in());
4443
namingContext->_non_existent();
4544
}
4645
catch ( const CORBA::TRANSIENT&)

TAO/orbsvcs/tests/Bug_2248_Regression/Server_Request_Interceptor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ Server_Request_Interceptor::receive_request (
9090
"object_group_ref_version is %d\n", group_component.object_group_ref_version));
9191
}
9292
}
93-
94-
return;
9593
}
9694

9795
void

TAO/orbsvcs/tests/Bug_2285_Regression/server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
161161

162162
// Get a ref to the IORManipulation object
163163
CORBA::Object_var IORM =
164-
orb->resolve_initial_references (TAO_OBJID_IORMANIPULATION,
165-
0);
164+
orb->resolve_initial_references (TAO_OBJID_IORMANIPULATION, 0);
166165

167166
// Narrow
168167
iorm =

0 commit comments

Comments
 (0)