Implement Review Fixes
<UserStory> EMP003 : View Profile </UserStory> <Changes> - Avoid unecessary copies. </Changes> <Review> Smitha Mohan </Review>
This commit is contained in:
@@ -35,7 +35,7 @@ inline void viewProfile(std::shared_ptr<ZenvyController> controller)
|
||||
}
|
||||
std::cout << "Team ID: " << (currentEmployee->getEmployeeTeamId().empty() ? "NULL " : (currentEmployee->getEmployeeTeamId())) << std::endl
|
||||
<< "Team Status: " << Enums::getTeamStatusString(currentEmployee->getEmployeeTeamStatus()) << std::endl;
|
||||
if (auto payroll = currentEmployee->getPayroll())
|
||||
if (const auto& payroll = currentEmployee->getPayroll())
|
||||
{
|
||||
std::cout << std::endl
|
||||
<< "Payroll Details" << std::endl
|
||||
|
||||
Reference in New Issue
Block a user