[Liblas-commits] hg: initialize m_wkt to nothing,
and copy m_wkt in the copy and ...
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Dec 16 10:40:32 EST 2010
changeset ff5fad2234df in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=ff5fad2234df
summary: initialize m_wkt to nothing, and copy m_wkt in the copy and assignment constructors
diffstat:
src/lasspatialreference.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r 8d6c5f5204e0 -r ff5fad2234df src/lasspatialreference.cpp
--- a/src/lasspatialreference.cpp Thu Dec 16 09:23:43 2010 -0600
+++ b/src/lasspatialreference.cpp Thu Dec 16 09:40:26 2010 -0600
@@ -88,6 +88,7 @@
SpatialReference::SpatialReference()
: m_gtiff(0)
, m_tiff(0)
+ , m_wkt(0)
{
assert(0 == m_gtiff);
assert(0 == m_tiff);
@@ -104,6 +105,7 @@
SpatialReference::SpatialReference(SpatialReference const& other)
: m_gtiff(0)
, m_tiff(0)
+ , m_wkt(other.m_wkt)
{
SetVLRs(other.GetVLRs());
GetGTIF();
@@ -115,6 +117,7 @@
{
SetVLRs(rhs.GetVLRs());
GetGTIF();
+ m_wkt = rhs.m_wkt;
}
return *this;
}
More information about the Liblas-commits
mailing list