From 283e6fd072af85d5f2edab3cb98f2a94b1701a93 Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Tue, 27 Jul 2021 17:16:14 -0400 Subject: Remove dynamicLibrary global variable - Replaced dynamicLibrary in app_common with local variables - Changed data type to string - Changed conditionals to reflect this --- tester/covoar/ExecutableInfo.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tester/covoar/ExecutableInfo.cc') diff --git a/tester/covoar/ExecutableInfo.cc b/tester/covoar/ExecutableInfo.cc index a6184e7..9c3031e 100644 --- a/tester/covoar/ExecutableInfo.cc +++ b/tester/covoar/ExecutableInfo.cc @@ -18,18 +18,18 @@ namespace Coverage { ExecutableInfo::ExecutableInfo( - const char* const theExecutableName, - const char* const theLibraryName, - bool verbose + const char* const theExecutableName, + const std::string& theLibraryName, + bool verbose ) : fileName(theExecutableName), loadAddress(0) { - if (theLibraryName != nullptr) + if ( !theLibraryName.empty() ) libraryName = theLibraryName; if (verbose) { std::cerr << "Loading executable " << theExecutableName; - if (theLibraryName != nullptr) + if ( !theLibraryName.empty() ) std::cerr << " (" << theLibraryName << ')'; std::cerr << std::endl; } -- cgit v1.2.3