Skip to content

Commit

Permalink
Bugfix #2514 develop clang (#2563)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway authored Jun 12, 2023
1 parent f5cdb46 commit 736bb46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/basic/vx_log/concat_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ConcatString {

void chomp(const char *); // removes trailing suffix, if possible

operator const std::string () const;
operator std::string() const;

bool startswith(const char *) const;
bool endswith(const char *) const;
Expand Down Expand Up @@ -205,7 +205,7 @@ inline const char * ConcatString::float_format() const { return ( FloatFormat );
inline bool ConcatString::empty() const { return ( s ? s->empty() : true ); }
inline bool ConcatString::nonempty() const { return ( s ? !s->empty() : false ); }

inline ConcatString::operator const std::string () const { return ( s ? *s : 0 ); }
inline ConcatString::operator std::string() const { return ( s ? *s : 0 ); }


////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/basic/vx_util/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void set_handlers() {

void set_user_id() {
met_user_id = geteuid ();
register struct passwd *pw;
struct passwd *pw;
pw = getpwuid (met_user_id);
if (pw) met_user_name = string(pw->pw_name);
}
Expand Down

0 comments on commit 736bb46

Please sign in to comment.