From cbac75d07d3d15a3a1f636e46700664db3d40372 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric-Emmanuel=20PICCA?= Date: Mon, 1 Mar 2010 10:03:55 +0100 Subject: [PATCH] * keep it synchro with the hkl library. --- src/TangoHKLAdapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TangoHKLAdapter.cpp b/src/TangoHKLAdapter.cpp index d741fc3..d5aa308 100644 --- a/src/TangoHKLAdapter.cpp +++ b/src/TangoHKLAdapter.cpp @@ -619,7 +619,7 @@ namespace Diffractometer_ns HklSample * sample; // The name of the property name is the name of a crystal. - sample = hkl_sample_new(properties[i].name.c_str(), HKL_SAMPLE_MONOCRYSTAL); + sample = hkl_sample_new(properties[i].name.c_str(), HKL_SAMPLE_TYPE_MONOCRYSTAL); // Extract the lines store in the property std::vector lines; @@ -1014,7 +1014,7 @@ namespace Diffractometer_ns { omni_mutex_lock lock(_lock); - HklSample *sample = hkl_sample_new(name.c_str(), HKL_SAMPLE_MONOCRYSTAL); + HklSample *sample = hkl_sample_new(name.c_str(), HKL_SAMPLE_TYPE_MONOCRYSTAL); if (!hkl_sample_list_append(_diffractometer->samples, sample)){ hkl_sample_free(sample); @@ -1056,7 +1056,7 @@ namespace Diffractometer_ns // add a default sample if no more sample in the list if(hkl_sample_list_len(samples) == 0){ - HklSample *sample = hkl_sample_new("default", HKL_SAMPLE_MONOCRYSTAL); + HklSample *sample = hkl_sample_new("default", HKL_SAMPLE_TYPE_MONOCRYSTAL); samples->current = hkl_sample_list_append(samples, sample); }else samples->current = hkl_sample_list_get_ith(samples, 0); -- 2.11.4.GIT