Skip to content

Commit

Permalink
Refs #21321: Apply Jesus suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Jul 23, 2024
1 parent 6b8257f commit eab53fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
24 changes: 1 addition & 23 deletions src/cpp/fastdds/core/Time_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

/**
* @file Time_t.cpp
*
*/

// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
* @file Time_t.cpp
*/
#include <fastdds/dds/core/Time_t.hpp>

#include <cstdlib>
#include <chrono>
#include <cstdlib>

#include <utils/time_t_helpers.hpp>

Expand Down
8 changes: 4 additions & 4 deletions src/cpp/utils/time_t_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef UTILS__TIMETHELPERS_HPP
#define UTILS__TIMETHELPERS_HPP
#ifndef FASTDDS_UTILS__TIMETHELPERS_HPP
#define FASTDDS_UTILS__TIMETHELPERS_HPP

#include <cstdlib>
#include <chrono>
#include <cstdlib>
// unnamed namespace for inline functions in compilation unit. Better practice than static inline.

constexpr uint64_t C_FRACTIONS_PER_SEC = 4294967296ULL;
Expand Down Expand Up @@ -52,4 +52,4 @@ static void current_time_since_unix_epoch(
nanosecs = static_cast<uint32_t>(duration_cast<nanoseconds>(t_since_epoch).count());
}

#endif // UTILS__TIMETHELPERS_HPP
#endif // FASTDDS_UTILS__TIMETHELPERS_HPP
2 changes: 1 addition & 1 deletion versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Forthcoming
* Setting vendor_id in the received CacheChange_t for Data and DataFrag.
* Added new DynamicData to JSON serializer (`json_serialize`).
* Added new DynamicType to IDL serializer (`idl_serialize`).
* `eprosima::fastdds::Time_t` moved to `eprosima::fastdds::dds::Time_t`.
* DDS implementation of `eprosima::fastdds::Time_t` moved to `eprosima::fastdds::dds::Time_t`.

Version 2.14.0
--------------
Expand Down

0 comments on commit eab53fe

Please sign in to comment.