Use `const CFileItem &item = g_application.CurrentFileItem();`