1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <rtl/ustring.hxx>
17 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
18 s2
= s2
.getToken(0, '(');
28 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
29 s2
= s2
.getToken(0, '(');
37 OUString
getFileSystemName();
39 OUString
aNullURL("");
40 void f(VolumeInfo _aVolumeInfo
)
42 OUString
aFileSysName(aNullURL
);
43 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
44 aFileSysName
= _aVolumeInfo
.getFileSystemName();
52 B3DVector
getPerpendicular();
54 void f(B3DVector aNewVPN
)
56 B3DVector aNewToTheRight
= aNewVPN
;
57 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
58 aNewToTheRight
= aNewToTheRight
.getPerpendicular();
64 void f(OUString s
, int x
)
67 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
68 nPos
= s
.indexOf("x", nPos
);
77 s2
= s2
.getToken(0, '('); // no warning expected
86 void foo(Class1
& rOther
)
88 OUString s
= rOther
.m_field1
;
89 // expected-error@+1 {{simplify by merging with the preceding assignment [loplugin:sequentialassign]}}
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */