There were a mixture of existing implementations, mostly were non-const, perhaps the only one that was const was in roxie/ccd/ccdcontext.cpp.

But it like others, doesn't alter the called object, but rather it returns an instance that can be altered. The method name would be better named getUpdatableWorkUnit() or similar.