Replace macro-based modifiers with WSTRModifiers structAryan KrishnanAs always, reminder to rewrite the CL description to match the actual code.
Yep forgot to replace here, mb. Done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool wide = (view.Front() == 's');Aryan KrishnanCan skip this computation:
```
bool wide;
if (nModifier == WSTRModifier::kForceUnicode) {
wide = true;
} else if (nModifier == WSTRModifier::kForceAnsi) {
wide = false;
} else {
wide = (view.Front() == 's');
}
```
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
enum class WSTRModifier {Move this closer to where used.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Move this closer to where used.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
kForceNone,Consider omitting "Force" here, so it's just `kNone`.
kForceAnsi,Thoughts on also omitting "Force" for the other entries?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Consider omitting "Force" here, so it's just `kNone`.
Done.
kForceAnsi,Thoughts on also omitting "Force" for the other entries?
I'd say for these lets keep it, the old #defines were named as `FORCE_SOMETHING`, so I think we should include the force to try keep the name consistent @the...@chromium.org?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kForceAnsi,Aryan KrishnanThoughts on also omitting "Force" for the other entries?
I'd say for these lets keep it, the old #defines were named as `FORCE_SOMETHING`, so I think we should include the force to try keep the name consistent @the...@chromium.org?
I'm fine with keeping it as-is.
WSTRModifier nModifier = WSTRModifier::kForceNone;Need to update this so the latest patchset compiles.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Need to update this so the latest patchset compiles.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |