From abada90e3f84dc703b8ddc9efcbed8a946fadead Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 1 Feb 2007 17:09:49 +0000 Subject: Expanded tabs into spaces --- .../Database/Oracle/occi/OCCIServantLocator.cpp | 54 +++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'cpp/demo/Database/Oracle/occi/OCCIServantLocator.cpp') diff --git a/cpp/demo/Database/Oracle/occi/OCCIServantLocator.cpp b/cpp/demo/Database/Oracle/occi/OCCIServantLocator.cpp index 4236c9dc542..6d8b0ba8449 100755 --- a/cpp/demo/Database/Oracle/occi/OCCIServantLocator.cpp +++ b/cpp/demo/Database/Oracle/occi/OCCIServantLocator.cpp @@ -30,37 +30,37 @@ OCCIServantLocator::locate(const Ice::Current& current, Ice::LocalObjectPtr& coo try { - // - // Extract SQL type from target object - // - string sqlType = Ref(ref)->getSQLTypeName(); + // + // Extract SQL type from target object + // + string sqlType = Ref(ref)->getSQLTypeName(); - // - // Create and return the servant, used only for this one operation - // - if(sqlType.find("EMP_T") != string::npos) - { - return new EmpI(ref, con, _factory); - } - else if(sqlType.find("DEPT_T") != string::npos) - { - return new DeptI(ref, con, _factory); - } - else - { - return 0; - } + // + // Create and return the servant, used only for this one operation + // + if(sqlType.find("EMP_T") != string::npos) + { + return new EmpI(ref, con, _factory); + } + else if(sqlType.find("DEPT_T") != string::npos) + { + return new DeptI(ref, con, _factory); + } + else + { + return 0; + } } catch(const SQLException& sqle) { - if(sqle.getErrorCode() == 21700) - { - return 0; - } - else - { - throw; - } + if(sqle.getErrorCode() == 21700) + { + return 0; + } + else + { + throw; + } } } -- cgit v1.2.3