diff --git a/src/qos_dictionary.cpp b/src/qos_dictionary.cpp index 928f13f..8490b39 100644 --- a/src/qos_dictionary.cpp +++ b/src/qos_dictionary.cpp @@ -196,11 +196,6 @@ DDS::DestinationOrderQosPolicyKind QosDictionary::getTimestampPolicy() return retval; } -DDS::DataRepresentationId_t QosDictionary::getDataRepresentationType() -{ - return DDS::XCDR2_DATA_REPRESENTATION; -} - /** * @brief Get the encoding for DataWriters * @details Snippet from the OpenDDS 3.16 developers guide: @@ -208,6 +203,11 @@ DDS::DataRepresentationId_t QosDictionary::getDataRepresentationType() * We default to XCDR2, but if $DDS_USE_OLD_CDR is set, CDR is used for compatilility with versions before 3.16.0 * @return QosPolicy for destination order. */ +DDS::DataRepresentationId_t QosDictionary::getDataRepresentationType() +{ + return DDS::XCDR2_DATA_REPRESENTATION; +} + OpenDDS::DCPS::Encoding::Kind QosDictionary::getEncodingKind() { if (QosDictionary::getDataRepresentationType() == DDS::XCDR_DATA_REPRESENTATION)