[Liblas-commits] hg: apply small fix to index code from Orfeo
project
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Jan 18 15:02:41 EST 2011
details: http://hg.liblas.orghg/rev/6cae076c303a
changeset: 2781:6cae076c303a
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Jan 18 14:02:36 2011 -0600
description:
apply small fix to index code from Orfeo project
diffstat:
include/liblas/detail/index/indexoutput.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 4913aeffa3cd -r 6cae076c303a include/liblas/detail/index/indexoutput.hpp
--- a/include/liblas/detail/index/indexoutput.hpp Tue Jan 18 14:00:25 2011 -0600
+++ b/include/liblas/detail/index/indexoutput.hpp Tue Jan 18 14:02:36 2011 -0600
@@ -71,10 +71,10 @@
};
template <typename T, typename Q>
-inline void WriteVLRData_n(IndexVLRData& dest, T src, Q& pos)
+inline void WriteVLRData_n(IndexVLRData& dest, T& src, Q& pos)
{
// Fix little-endian
- LIBLAS_SWAP_BYTES_N(&src, sizeof(T));
+ LIBLAS_SWAP_BYTES_N(src, sizeof(T));
// error if writing past array end
if (static_cast<size_t>(pos) + sizeof(T) > dest.size())
throw std::out_of_range("liblas::detail::WriteVLRData_n: array index out of range");
@@ -85,10 +85,10 @@
}
template <typename T, typename Q>
-inline void WriteVLRDataNoInc_n(IndexVLRData& dest, T src, Q const& pos)
+inline void WriteVLRDataNoInc_n(IndexVLRData& dest, T& src, Q const& pos)
{
// Fix little-endian
- LIBLAS_SWAP_BYTES_N(&src, sizeof(T));
+ LIBLAS_SWAP_BYTES_N(src, sizeof(T));
// error if writing past array end
if (static_cast<size_t>(pos) + sizeof(T) > dest.size())
throw std::out_of_range("liblas::detail::WriteVLRDataNoInc_n: array index out of range");
More information about the Liblas-commits
mailing list