Fresco/Fresco-C++/src ClientContextImpl.cc,1.6,1.7

Neil John Pilgrim <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Fresco-C++/src
In directory purcel:/tmp/cvs-serv29383/Fresco-C++/src

Modified Files:
	ClientContextImpl.cc 
Log Message:
Fix for issue reported by Bill Banks Jr, plus indenting update.



Index: ClientContextImpl.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++/src/ClientContextImpl.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ClientContextImpl.cc	29 May 2002 06:49:41 -0000	1.6
+++ ClientContextImpl.cc	14 Apr 2003 09:17:04 -0000	1.7
@@ -43,33 +43,32 @@
   };
 };
 
-ClientContextImpl::ClientContextImpl(const char *title)
-  : _title(title),
-    _user(new Prague::User())
-{};  
+ClientContextImpl::ClientContextImpl(Babylon::String const & title)
+    : _title(title),
+      _user(new Prague::User())
+{}  
   
 Unistring *ClientContextImpl::user_name()
 {
-  std::string name = _user->name();
-  Unistring *ustring = new Unistring;
-  ustring->length(name.length());
-  for(unsigned int i = 0; i < name.length(); i++) ustring[i] = name[i];
-  return ustring;
+    std::string name = _user->name();
+    Unistring *ustring = new Unistring;
+    ustring->length(name.length());
+    for(unsigned int i = 0; i < name.length(); i++) ustring[i] = name[i];
+    return ustring;
 }
 
 Unistring *ClientContextImpl::application_title()
 {
-  Unistring *ustring = new Unistring;
-  *ustring = Unicode::to_CORBA(Babylon::String(_title));
-  return ustring;
+    Unistring *ustring = new Unistring;
+    *ustring = Unicode::to_CORBA(_title);
+    return ustring;
 }
 
 Command_ptr ClientContextImpl::exit()
 {
-  ExitCommand *command = new ExitCommand();
-  PortableServer::POA_var poa = _default_POA();
-  PortableServer::ObjectId *oid = poa->activate_object(command);
-  command->_remove_ref();
-  delete oid;
-  return command->_this();
+    ExitCommand *command = new ExitCommand();
+    PortableServer::POA_var poa = _default_POA();
+    PortableServer::ObjectId_var oid = poa->activate_object(command);
+    command->_remove_ref();
+    return command->_this();
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.