I've changed several files.<br>When I try to 'make' : a lot of stuff is printed regarding XShape, CustomShapeGeometry, PointSequence, etc<br><br>Then error is printed as :<br><br>diff.cxx:332:Assertion<br>Test name: SdFiltersTest::test<br>
double equality assertion failed<br>- Expected: 3433903<br>- Actual : 0<br>- Delta : 1e-08<br>- startColor<br><br>Failures !!!<br>Run: 3 Failure total: 1 Failures: 1 Errors: 0<br><br>Error: a unit test failed, please do one of:<br>
<br>export DEBUGCPPUNIT=TRUE # for exception catching<br>export GDBCPPUNITTRACE="gdb --args" # for interactive debugging<br>export VALGRIND=memcheck # for memory checking<br>and retry.<br>make[1]: *** [/home/elixir/lo/workdir/<a href="http://unxlngx6.pro/CppunitTest/sd_regression_test.test">unxlngx6.pro/CppunitTest/sd_regression_test.test</a>] Error 1<br>
make[1]: *** Waiting for unfinished jobs....<br><br>Can't get rid of it and i don't have any clue too, please guide ! <br><br>Thanking you in anticipation.<br><br>Regards<br>Prashant<br><br><div class="gmail_quote">
On Mon, Feb 18, 2013 at 3:09 AM, Prashant Pandey <span dir="ltr"><<a href="mailto:prashant3.yishu@gmail.com" target="_blank">prashant3.yishu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry, it was <b>aRealStyle.copy(aRealStyle.Search(aSep) + aSep.Len());</b> which made it through correctly.<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Prashant</font></span><div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 3:06 AM, Prashant Pandey <span dir="ltr"><<a href="mailto:prashant3.yishu@gmail.com" target="_blank">prashant3.yishu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jean,<br><br>Thanks for help !<br><br>Finally, I did : <b>aRealStyle.copy(0,(aRealStyle.Search(aSep) + aSep.Len()));</b><br>
<br>It also worked :)<br><br>Thanks once again!<span><font color="#888888"><br><br>-Prashant</font></span><div><div><br><br><div class="gmail_quote">
On Sun, Feb 17, 2013 at 11:11 PM, Jean-Noël Rouvignac <span dir="ltr"><<a href="mailto:jn.rouvignac@gmail.com" target="_blank">jn.rouvignac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Prashant,<br><br><div class="gmail_quote">2013/2/17 Prashant Pandey <span dir="ltr"><<a href="mailto:prashant3.yishu@gmail.com" target="_blank">prashant3.yishu@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>Hi,<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>I need some guidance as am stuck at a place. <br>
How should I replace 'erase' using guidelines given under <a href="https://wiki.documentfoundation.org/Development/String_Classes" target="_blank">https://wiki.documentfoundation.org/Development/String_Classes</a>.<br>
If I try to fit 'replaceAt' in place of 'erase' in the line bolded below:<br><br></div><div><b> aRealStyle.Erase(aRealStyle.Search(aSep) + aSep.Len());</b><br><br>it will give me error (if I do : <b>aRealStyle.replaceAt(aRealStyle.indexOf(aSep) + aSep.getLength());</b>)<br>
<br>Reason: <br><br>replaceAt defined as: rtl::OUString rtl::OUString::replaceAt(sal_Int32, sal_Int32, const rtl::OUString&) const<br>(candidate expects 3 arguments, 1 provided)<br>error: no matching function for call to ‘rtl::OUString::replaceAt(sal_Int32)<br>
<br>My question is, what should I pass inside the replaceAt() parameters/arguments?<br></div></blockquote></div></div></div></blockquote></div><br>I would suggest you write this:<br><b> sal_int32 idx = </b><b>aRealStyle.indexOf(aSep) + aSep.getLength();</b><br>
<b> </b><b><b>aRealStyle = </b>aRealStyle.replaceAt(idx, </b><b><b>aRealStyle</b>.getLength() - </b><b><b>aRealStyle, ""</b>);</b><br>
<br>Because:<br><ul><li>If nIndex is set then can use replaceAt with an arg of an empty string (from the wiki page)<br></li><li>The second argument is the count, and here we replace until the end of the string</li><li>Since OUString is immutable, you must assign back the resulting OUString if you do not want to lose it</li>
</ul><p>Cheers,<br></p><p>Jean-Noël<br></p>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>