summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-01-17 18:09:41 +0000
committerAndrew <andrewarnott@gmail.com>2008-01-17 18:09:41 +0000
commit7e85d52ec1ad4667bc2c8fe44d928ee69d659cf9 (patch)
tree516c0e1508f339d162fa06b18396193e86ab5b83
parent4e8f72074eeb1f4bfb34e1cac05db3eef9ab66e3 (diff)
downloadDotNetOpenAuth-7e85d52ec1ad4667bc2c8fe44d928ee69d659cf9.zip
DotNetOpenAuth-7e85d52ec1ad4667bc2c8fe44d928ee69d659cf9.tar.gz
DotNetOpenAuth-7e85d52ec1ad4667bc2c8fe44d928ee69d659cf9.tar.bz2
Removed unneeded ref keyword from UriUtil.AppendQueryArgs method.
git-svn-id: https://dotnetopenid.googlecode.com/svn/trunk@73 01efa1a6-402a-0410-b0ae-47b76eba00f0
-rw-r--r--source/Janrain.OpenId/Consumer/AuthRequest.cs6
-rw-r--r--source/Janrain.OpenId/Consumer/OpenIdTextBox.cs2
-rw-r--r--source/Janrain.OpenId/Server/CheckIdRequest.cs4
-rw-r--r--source/Janrain.OpenId/Server/ProtocolException.cs2
-rw-r--r--source/Janrain.OpenId/Server/Response.cs2
-rw-r--r--source/Janrain.OpenId/Util.cs8
6 files changed, 12 insertions, 12 deletions
diff --git a/source/Janrain.OpenId/Consumer/AuthRequest.cs b/source/Janrain.OpenId/Consumer/AuthRequest.cs
index e6dac47..a75a231 100644
--- a/source/Janrain.OpenId/Consumer/AuthRequest.cs
+++ b/source/Janrain.OpenId/Consumer/AuthRequest.cs
@@ -55,7 +55,7 @@ namespace Janrain.OpenId.Consumer
modeStr = "checkid_setup";
UriBuilder returnToBuilder = new UriBuilder(returnTo);
- UriUtil.AppendQueryArgs(ref returnToBuilder, this.ReturnToArgs);
+ UriUtil.AppendQueryArgs(returnToBuilder, this.ReturnToArgs);
NameValueCollection qsArgs = new NameValueCollection();
@@ -69,8 +69,8 @@ namespace Janrain.OpenId.Consumer
UriBuilder redir = new UriBuilder(this.endpoint.ServerUrl);
- UriUtil.AppendQueryArgs(ref redir, qsArgs);
- UriUtil.AppendQueryArgs(ref redir, this.ExtraArgs);
+ UriUtil.AppendQueryArgs(redir, qsArgs);
+ UriUtil.AppendQueryArgs(redir, this.ExtraArgs);
return new Uri(redir.ToString(), true);
}
diff --git a/source/Janrain.OpenId/Consumer/OpenIdTextBox.cs b/source/Janrain.OpenId/Consumer/OpenIdTextBox.cs
index ccbe143..291cdfb 100644
--- a/source/Janrain.OpenId/Consumer/OpenIdTextBox.cs
+++ b/source/Janrain.OpenId/Consumer/OpenIdTextBox.cs
@@ -361,7 +361,7 @@ namespace NerdBank.OpenId.Consumer
return_to_params.Add(key, Page.Request.QueryString[key]);
}
}
- UriUtil.AppendQueryArgs(ref return_to, return_to_params);
+ UriUtil.AppendQueryArgs(return_to, return_to_params);
Uri redirectUrl = request.CreateRedirect(trustRoot, return_to.Uri, AuthRequest.Mode.SETUP);
Page.Response.Redirect(redirectUrl.AbsoluteUri);
}
diff --git a/source/Janrain.OpenId/Server/CheckIdRequest.cs b/source/Janrain.OpenId/Server/CheckIdRequest.cs
index da8f0b3..679bbb2 100644
--- a/source/Janrain.OpenId/Server/CheckIdRequest.cs
+++ b/source/Janrain.OpenId/Server/CheckIdRequest.cs
@@ -369,7 +369,7 @@ namespace Janrain.OpenId.Server
q.Add("openid.assoc_handle", this.AssocHandle);
UriBuilder builder = new UriBuilder(server_url);
- UriUtil.AppendQueryArgs(ref builder, q);
+ UriUtil.AppendQueryArgs(builder, q);
return new Uri(builder.ToString());
}
@@ -383,7 +383,7 @@ namespace Janrain.OpenId.Server
NameValueCollection args = new NameValueCollection();
args.Add("openid.mode", "cancel");
- UriUtil.AppendQueryArgs(ref builder, args);
+ UriUtil.AppendQueryArgs(builder, args);
return new Uri(builder.ToString());
}
diff --git a/source/Janrain.OpenId/Server/ProtocolException.cs b/source/Janrain.OpenId/Server/ProtocolException.cs
index 87d2332..7b83bb7 100644
--- a/source/Janrain.OpenId/Server/ProtocolException.cs
+++ b/source/Janrain.OpenId/Server/ProtocolException.cs
@@ -79,7 +79,7 @@ namespace Janrain.OpenId.Server
q.Add("openid.error", this.Message);
UriBuilder builder = new UriBuilder(return_to);
- UriUtil.AppendQueryArgs(ref builder, q);
+ UriUtil.AppendQueryArgs(builder, q);
return new Uri(builder.ToString());
}
diff --git a/source/Janrain.OpenId/Server/Response.cs b/source/Janrain.OpenId/Server/Response.cs
index 30e754f..0a931ca 100644
--- a/source/Janrain.OpenId/Server/Response.cs
+++ b/source/Janrain.OpenId/Server/Response.cs
@@ -144,7 +144,7 @@ namespace Janrain.OpenId.Server
CheckIdRequest checkidreq = (CheckIdRequest)this.Request;
UriBuilder builder = new UriBuilder(checkidreq.ReturnTo);
- UriUtil.AppendQueryArgs(ref builder, nvc);
+ UriUtil.AppendQueryArgs(builder, nvc);
return new Uri(builder.ToString());
}
diff --git a/source/Janrain.OpenId/Util.cs b/source/Janrain.OpenId/Util.cs
index 9bd05f7..890a111 100644
--- a/source/Janrain.OpenId/Util.cs
+++ b/source/Janrain.OpenId/Util.cs
@@ -44,9 +44,9 @@ namespace Janrain.OpenId
#endregion
- #region AppendQueryArg(ref UriBuilder builder, string key, string value)
+ #region AppendQueryArg(UriBuilder builder, string key, string value)
- public static void AppendQueryArg(ref UriBuilder builder, string key, string value)
+ public static void AppendQueryArg(UriBuilder builder, string key, string value)
{
string encKey = HttpUtility.UrlEncode(key);
string encVal = HttpUtility.UrlEncode(value);
@@ -64,9 +64,9 @@ namespace Janrain.OpenId
#endregion
- #region AppendQueryArgs(ref UriBuilder builder, NameValueCollection args)
+ #region AppendQueryArgs(UriBuilder builder, NameValueCollection args)
- public static void AppendQueryArgs(ref UriBuilder builder, NameValueCollection args)
+ public static void AppendQueryArgs(UriBuilder builder, NameValueCollection args)
{
if (args.Count > 0)
{