Update window.cpp

Updated to meet code quality standards