Skip to content

Commit

Permalink
Fix: Function simple name point to a temporary location
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Oct 22, 2015
1 parent 86c6d49 commit 91f8dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metadata.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class FunctionMetadata : public MetadataBase, public RefCounted<FunctionMetadata
FunctionMetadata(const std::string& name, const Value* signature,
const SharedRefPtr<RefBuffer>& buffer, const Row* row);

StringRef simple_name() const { return simple_name_; }
const std::string& simple_name() const { return simple_name_; }
const Argument::Vec& args() const { return args_; }
const DataType::Ptr& return_type() const { return return_type_; }
StringRef body() const { return body_; }
Expand All @@ -204,7 +204,7 @@ class FunctionMetadata : public MetadataBase, public RefCounted<FunctionMetadata
const DataType* get_arg_type(StringRef name) const;

private:
StringRef simple_name_;
std::string simple_name_;
Argument::Vec args_;
Argument::Map args_by_name_;
DataType::Ptr return_type_;
Expand Down

0 comments on commit 91f8dbc

Please sign in to comment.