Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo {
- Foo(int, const OUString &) {}
- Foo(OUString const &, int) {}
- };
- int main() {
- Foo aFoo(OUString("xxx1"), 1); // expected-error {{in call of 'Foo::Foo', replace 'OUString' constructed from a string literal directly with the string literal}}
- (void)aFoo;
- Foo aFoo3(1, OUString("xxx2")); // expected-error {{in call of 'Foo::Foo', replace 'OUString' constructed from a string literal directly with the string literal}}
- (void)aFoo3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement