WinImplHelper.cxx (b557fc96) | WinImplHelper.cxx (e9faf1d9) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 548 unchanged lines hidden (view full) --- 557 558 if ( (aWinLabel.indexOf( TILDE ) > -1) || (aWinLabel.indexOf( AMPERSAND ) > -1) ) 559 { 560 sal_Int32 nStrLen = aWinLabel.getLength( ); 561 562 // in the worst case the new string is 563 // doubled in length, maybe some waste 564 // of memory but how long is a label | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 548 unchanged lines hidden (view full) --- 557 558 if ( (aWinLabel.indexOf( TILDE ) > -1) || (aWinLabel.indexOf( AMPERSAND ) > -1) ) 559 { 560 sal_Int32 nStrLen = aWinLabel.getLength( ); 561 562 // in the worst case the new string is 563 // doubled in length, maybe some waste 564 // of memory but how long is a label |
565 // normaly(?) | 565 // normally(?) |
566 rtl::OUStringBuffer aBuffer( nStrLen * 2 ); 567 568 Replace( aWinLabel, TILDE_SIGN, AMPERSAND_SIGN, aBuffer ); 569 570 aWinLabel = aBuffer.makeStringAndClear( ); 571 } 572 573 return aWinLabel; --- 14 unchanged lines hidden (view full) --- 588 589 if ( (aSOLabel.indexOf( TILDE ) > -1) || (aSOLabel.indexOf( AMPERSAND ) > -1) ) 590 { 591 sal_Int32 nStrLen = aSOLabel.getLength( ); 592 593 // in the worst case the new string is 594 // doubled in length, maybe some waste 595 // of memory but how long is a label | 566 rtl::OUStringBuffer aBuffer( nStrLen * 2 ); 567 568 Replace( aWinLabel, TILDE_SIGN, AMPERSAND_SIGN, aBuffer ); 569 570 aWinLabel = aBuffer.makeStringAndClear( ); 571 } 572 573 return aWinLabel; --- 14 unchanged lines hidden (view full) --- 588 589 if ( (aSOLabel.indexOf( TILDE ) > -1) || (aSOLabel.indexOf( AMPERSAND ) > -1) ) 590 { 591 sal_Int32 nStrLen = aSOLabel.getLength( ); 592 593 // in the worst case the new string is 594 // doubled in length, maybe some waste 595 // of memory but how long is a label |
596 // normaly(?) | 596 // normally(?) |
597 rtl::OUStringBuffer aBuffer( nStrLen * 2 ); 598 599 Replace( aSOLabel, AMPERSAND_SIGN, TILDE_SIGN, aBuffer ); 600 601 aSOLabel = aBuffer.makeStringAndClear( ); 602 } 603 604 return aSOLabel; 605} 606 | 597 rtl::OUStringBuffer aBuffer( nStrLen * 2 ); 598 599 Replace( aSOLabel, AMPERSAND_SIGN, TILDE_SIGN, aBuffer ); 600 601 aSOLabel = aBuffer.makeStringAndClear( ); 602 } 603 604 return aSOLabel; 605} 606 |