~azzar1/unity/fix-trash-li-blocking

« back to all changes in this revision

Viewing changes to UnityCore/Variant.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
  return *this;
143
143
}
144
144
 
 
145
BuilderWrapper& BuilderWrapper::add(char const* name, unsigned value)
 
146
{
 
147
  g_variant_builder_add(builder_, "{sv}", name, g_variant_new_uint32(value));
 
148
  return *this;
 
149
}
 
150
 
145
151
BuilderWrapper& BuilderWrapper::add(char const* name, float value)
146
152
{
147
153
  // floats get promoted to doubles automatically