aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-03 10:08:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-03 10:08:31 +0200
commita4dc2635e15ab4655b08b2e082404ec10e1655c3 (patch)
tree9beaf9726a75b2c2cf423cebb6a93a57cd4eedf8
parenta42af2b9be73144b6cf22b74fd095c45ec9fb7fa (diff)
Use consistent context argument name in param and result callbacks
-rw-r--r--odb/oracle/traits.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/odb/oracle/traits.cxx b/odb/oracle/traits.cxx
index af0266f..22512ce 100644
--- a/odb/oracle/traits.cxx
+++ b/odb/oracle/traits.cxx
@@ -129,7 +129,7 @@ namespace odb
}
bool string_lob_value_traits::
- param_callback (const void* ctx,
+ param_callback (const void* c,
ub4*,
const void** b,
ub4* s,
@@ -137,7 +137,7 @@ namespace odb
void*,
ub4)
{
- const string& v (*static_cast<const string*> (ctx));
+ const string& v (*static_cast<const string*> (c));
*p = one_chunk;
*s = static_cast<ub4> (v.size ());
@@ -151,7 +151,7 @@ namespace odb
//
bool c_string_lob_value_traits::
- param_callback (const void* ctx,
+ param_callback (const void* c,
ub4*,
const void** b,
ub4* s,
@@ -159,7 +159,7 @@ namespace odb
void*,
ub4)
{
- const char* v (static_cast<const char*> (ctx));
+ const char* v (static_cast<const char*> (c));
*p = one_chunk;
*s = static_cast<ub4> (strlen (v));
@@ -200,7 +200,7 @@ namespace odb
}
bool default_value_traits<std::vector<char>, id_blob>::
- param_callback (const void* ctx,
+ param_callback (const void* c,
ub4*,
const void** b,
ub4* s,
@@ -208,7 +208,7 @@ namespace odb
void*,
ub4)
{
- const value_type& v (*static_cast<const value_type*> (ctx));
+ const value_type& v (*static_cast<const value_type*> (c));
*p = one_chunk;
*s = static_cast<ub4> (v.size ());
@@ -249,7 +249,7 @@ namespace odb
}
bool default_value_traits<std::vector<unsigned char>, id_blob>::
- param_callback (const void* ctx,
+ param_callback (const void* c,
ub4*,
const void** b,
ub4* s,
@@ -257,7 +257,7 @@ namespace odb
void*,
ub4)
{
- const value_type& v (*static_cast<const value_type*> (ctx));
+ const value_type& v (*static_cast<const value_type*> (c));
*p = one_chunk;
*s = static_cast<ub4> (v.size ());