Changeset 8
- Timestamp:
- 06/19/04 02:00:15
- Files:
-
- trunk/SubversionSharp/dev/src/SvnClientContext.cs (modified) (2 diffs)
- trunk/SubversionSharp/dev/src/SvnConfig.cs (modified) (7 diffs)
- trunk/SubversionSharp/dev/src/SvnError.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SubversionSharp/dev/src/SvnClientContext.cs
r7 r8 45 45 } 46 46 47 public bool IsNull ()47 public bool IsNull 48 48 { 49 return( mClientContext == null ); 49 get 50 { 51 return( mClientContext == null ); 52 } 50 53 } 51 54 52 55 private void CheckPtr() 53 56 { 54 if( IsNull ())57 if( IsNull ) 55 58 throw new AprNullReferenceException(); 56 59 } … … 84 87 Debug.Write(String.Format("svn_client_create_context({0})...",pool)); 85 88 SvnError err = Svn.svn_client_create_context(out ptr, pool); 86 if(!err.IsNoError ())89 if(!err.IsNoError) 87 90 throw new SvnException(err); 88 91 Debug.WriteLine(String.Format("Done({0:X})",((Int32)ptr))); trunk/SubversionSharp/dev/src/SvnConfig.cs
r7 r8 26 26 } 27 27 28 public bool IsNull ()28 public bool IsNull 29 29 { 30 return( mConfig == IntPtr.Zero ); 30 get 31 { 32 return( mConfig == IntPtr.Zero ); 33 } 31 34 } 32 35 33 36 private void CheckPtr() 34 37 { 35 if( IsNull ())38 if( IsNull ) 36 39 throw new AprNullReferenceException(); 37 40 } … … 76 79 Debug.WriteLine(String.Format("svn_config_ensure({0},{1})",IntPtr.Zero,pool)); 77 80 SvnError err = Svn.svn_config_ensure(IntPtr.Zero, pool); 78 if(!err.IsNoError ())81 if(!err.IsNoError) 79 82 throw new SvnException(err); 80 83 } … … 84 87 Debug.WriteLine(String.Format("svn_config_ensure({0},{1})",configDir,pool)); 85 88 SvnError err = Svn.svn_config_ensure(configDir, pool); 86 if(!err.IsNoError ())89 if(!err.IsNoError) 87 90 throw new SvnException(err); 88 91 } … … 92 95 Debug.WriteLine(String.Format("svn_config_ensure({0},{1})",configDir,pool)); 93 96 SvnError err = Svn.svn_config_ensure(configDir, pool); 94 if(!err.IsNoError ())97 if(!err.IsNoError) 95 98 throw new SvnException(err); 96 99 } … … 101 104 Debug.WriteLine(String.Format("svn_config_get_config({0},{1})",IntPtr.Zero,pool)); 102 105 SvnError err = Svn.svn_config_get_config(out h, IntPtr.Zero, pool); 103 if(!err.IsNoError ())106 if(!err.IsNoError) 104 107 throw new SvnException(err); 105 108 return h; … … 111 114 Debug.WriteLine(String.Format("svn_config_get_config({0},{1})",configDir,pool)); 112 115 SvnError err = Svn.svn_config_get_config(out h, configDir, pool); 113 if(!err.IsNoError ())116 if(!err.IsNoError) 114 117 throw new SvnException(err); 115 118 return h; … … 121 124 Debug.WriteLine(String.Format("svn_config_get_config({0},{1})",configDir,pool)); 122 125 SvnError err = Svn.svn_config_get_config(out h, configDir, pool); 123 if(!err.IsNoError ())126 if(!err.IsNoError) 124 127 throw new SvnException(err); 125 128 return h; trunk/SubversionSharp/dev/src/SvnError.cs
r2 r8 42 42 } 43 43 44 public bool IsNoError ()44 public bool IsNoError 45 45 { 46 return( mError == null ); 46 get 47 { 48 return( mError == null ); 49 } 47 50 } 48 51