Implement Review Fixes

<UserStory> EMP003 : View Profile </UserStory>

<Changes>
- Avoid unecessary copies.
</Changes>

<Review>
Smitha Mohan
</Review>
This commit is contained in:
2026-04-14 17:09:29 +05:30
parent f5adcdea30
commit 06d3760663
@@ -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