Fix conversion between CMPIData and String

This commit is contained in:
vcrhonek 2009-11-04 14:14:17 +00:00
parent a57dbbf70a
commit bc01487ba1
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- sblim-cmpi-devel-2.0.0/CmpiImpl.cpp 2009-07-01 20:22:03.000000000 +0530
+++ sblim-cmpi-devel-2.0.0_new/CmpiImpl.cpp 2009-07-01 20:22:03.000000000 +0530
@@ -894,8 +894,8 @@
CmpiData::CmpiData(const CmpiString& d) {
_data.state=CMPI_goodValue;
- _data.value.chars=(char*)d.charPtr();
- _data.type=CMPI_chars;
+ _data.value.string=d.getEnc();
+ _data.type=CMPI_string;
}
CmpiData::CmpiData(const char* d) {

View File

@ -2,13 +2,14 @@
Name: sblim-cmpi-devel
Version: 2.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: SBLIM CMPI Provider Development Support
Group: Development/Libraries
License: EPL
URL: http://sblim.wiki.sourceforge.net/
Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Patch0: sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@ -20,6 +21,7 @@ tog-pegasus-devel installed.
%prep
%setup -q
%patch0 -p1 -b cmpidata_constructor_4_cmpistring
%build
%configure --disable-library
@ -38,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/cmpi
%changelog
* Wed Nov 4 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-2
- Fix conversion between CMPIData and String
* Thu Aug 27 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-1
- Update to 2.0.0