From 67e12b95ea7b68f4904a7484d77ecfd787d16d0c Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Tue, 30 Oct 2007 09:05:31 +0000
Subject: * Optimized usings * Shortened type references * Removed redundant
'this' qualifier
---
OpenSim/Framework/Data.DB4o/DB4oUserData.cs | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Framework/Data.DB4o/DB4oUserData.cs')
diff --git a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
index b00fd02..c7113bf 100644
--- a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
+++ b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
@@ -28,8 +28,6 @@
using System;
using System.IO;
using libsecondlife;
-using OpenSim.Framework;
-using OpenSim.Framework;
namespace OpenSim.Framework.Data.DB4o
{
@@ -41,14 +39,14 @@ namespace OpenSim.Framework.Data.DB4o
///
/// The database manager
///
- DB4oUserManager manager;
+ private DB4oUserManager manager;
///
/// Artificial constructor called upon plugin load
///
public void Initialise()
{
- manager = new DB4oUserManager(Path.Combine(Util.dataDir(),"userprofiles.yap"));
+ manager = new DB4oUserManager(Path.Combine(Util.dataDir(), "userprofiles.yap"));
}
///
@@ -58,7 +56,7 @@ namespace OpenSim.Framework.Data.DB4o
/// A user profile
public UserProfileData GetUserByUUID(LLUUID uuid)
{
- if(manager.userProfiles.ContainsKey(uuid))
+ if (manager.userProfiles.ContainsKey(uuid))
return manager.userProfiles[uuid];
return null;
}
@@ -95,7 +93,7 @@ namespace OpenSim.Framework.Data.DB4o
/// The users account ID
/// A matching users profile
public UserAgentData GetAgentByUUID(LLUUID uuid)
- {
+ {
try
{
return GetUserByUUID(uuid).currentAgent;
@@ -126,7 +124,7 @@ namespace OpenSim.Framework.Data.DB4o
{
try
{
- return GetUserByName(fname,lname).currentAgent;
+ return GetUserByName(fname, lname).currentAgent;
}
catch (Exception)
{
@@ -149,7 +147,7 @@ namespace OpenSim.Framework.Data.DB4o
Console.WriteLine(e.ToString());
}
}
-
+
///
/// Creates a new user profile
///
@@ -157,15 +155,17 @@ namespace OpenSim.Framework.Data.DB4o
/// True on success, false on error
public bool UpdateUserProfile(UserProfileData user)
{
- try {
+ try
+ {
return manager.UpdateRecord(user);
- } catch (Exception e) {
+ }
+ catch (Exception e)
+ {
Console.WriteLine(e.ToString());
return false;
}
}
-
///
/// Creates a new user agent
@@ -219,4 +219,4 @@ namespace OpenSim.Framework.Data.DB4o
return "0.1";
}
}
-}
+}
\ No newline at end of file
--
cgit v1.1