Changeset 644:5ace8839c78c


Ignore:
Timestamp:
05/14/08 10:48:02 (2 years ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@711
Message:

return a reference instead of a copy for GetData?

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/liblas/lasrecordheader.hpp

    r641 r644  
    107107 
    108108    /// Get the data for this VLR 
    109     std::vector<uint8_t> GetData() const; 
     109    std::vector<uint8_t> const& GetData() const; 
    110110     
    111111    void SetData(std::vector<uint8_t> const&); 
  • src/lasrecordheader.cpp

    r642 r644  
    188188 
    189189 
    190 std::vector<uint8_t> LASVLR::GetData() const 
     190std::vector<uint8_t> const&  LASVLR::GetData() const 
    191191{ 
    192192    return m_data; 
Note: See TracChangeset for help on using the changeset viewer.