diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-05 22:27:38 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-06 07:19:08 +0200 |
commit | 5d0272772a174644e63fd46664887a2cb0362ba5 (patch) | |
tree | d0c31c3c4fdbc4eca1431e14831ca4b5f9045a6c | |
parent | e8288b8857928cb54077608ca5907c966bfd490f (diff) |
consistent percent sign in comments
Change-Id: I9906b4e58fd8672e51f6aa2e56ec68bb28772500
-rw-r--r-- | editeng/source/misc/swafopt.cxx | 2 | ||||
-rw-r--r-- | framework/source/helper/vclstatusindicator.cxx | 2 | ||||
-rw-r--r-- | include/tools/color.hxx | 4 | ||||
-rw-r--r-- | offapi/com/sun/star/drawing/GraphicObjectShape.idl | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/text/porlay.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/uibase/frmdlg/colmgr.cxx | 2 |
10 files changed, 13 insertions, 13 deletions
diff --git a/editeng/source/misc/swafopt.cxx b/editeng/source/misc/swafopt.cxx index fd81eff75eda..deee6fce0b10 100644 --- a/editeng/source/misc/swafopt.cxx +++ b/editeng/source/misc/swafopt.cxx @@ -61,7 +61,7 @@ SvxSwAutoFmtFlags::SvxSwAutoFmtFlags() bDummy6 = bDummy7 = bDummy8 = false; - nRightMargin = 50; // dflt. 50 % + nRightMargin = 50; // dflt. 50% nAutoCmpltExpandKey = KEY_RETURN; aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL ); diff --git a/framework/source/helper/vclstatusindicator.cxx b/framework/source/helper/vclstatusindicator.cxx index 3745beb11a19..a2b062509571 100644 --- a/framework/source/helper/vclstatusindicator.cxx +++ b/framework/source/helper/vclstatusindicator.cxx @@ -118,7 +118,7 @@ void SAL_CALL VCLStatusIndicator::setValue(sal_Int32 nValue) sal_Int32 nRange = m_nRange; nValue = m_nValue; - // normalize value to fit the range of 0-100 % + // normalize value to fit the range of 0-100% sal_uInt16 nPercent = sal::static_int_cast< sal_uInt16 >( ::std::min( ((nValue*100) / ::std::max(nRange,(sal_Int32)1)), (sal_Int32)100)); diff --git a/include/tools/color.hxx b/include/tools/color.hxx index 6a3c09630642..0a55132a6fc9 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -146,8 +146,8 @@ public: // color space conversion tools // the range for h/s/b is: // Hue: 0-360 degree - // Saturation: 0-100 % - // Brightness: 0-100 % + // Saturation: 0-100% + // Brightness: 0-100% static ColorData HSBtoRGB( sal_uInt16 nHue, sal_uInt16 nSat, sal_uInt16 nBri ); void RGBtoHSB( sal_uInt16& nHue, sal_uInt16& nSat, sal_uInt16& nBri ) const; diff --git a/offapi/com/sun/star/drawing/GraphicObjectShape.idl b/offapi/com/sun/star/drawing/GraphicObjectShape.idl index 939e590f74a1..0a5dc2327509 100644 --- a/offapi/com/sun/star/drawing/GraphicObjectShape.idl +++ b/offapi/com/sun/star/drawing/GraphicObjectShape.idl @@ -94,7 +94,7 @@ published service GraphicObjectShape /** If this property is set, the transparency value of this graphic shape is adjusted by the given unsigned percent value. - 100% is fully transparent, 0 % is fully opaque. + 100% is fully transparent, 0% is fully opaque. */ [property] short Transparency; diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 87011f08de33..7958920c5540 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -1457,7 +1457,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) InitItems(); CalcOutputFactor(); if ( bRet && (bSetColWidths || bSetRowHeights) ) - { // Adjust column width/row height; base 100 % zoom + { // Adjust column width/row height; base 100% zoom Fraction aZoom( 1, 1 ); double nPPTX = ScGlobal::nScreenPPTX * (double) aZoom / GetOutputFactor(); // Factor is printer display ratio double nPPTY = ScGlobal::nScreenPPTY * (double) aZoom; diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index a2030da5cbf2..2f76e43ce31e 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -2810,7 +2810,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calcu if (bFitsPage) { if (nZoom == 100) - // If it fits at 100 %, it's good enough for me. + // If it fits at 100%, it's good enough for me. break; nLastFitZoom = nZoom; @@ -2869,7 +2869,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calcu if (bFitsPage) { if (nZoom == 100) - // If it fits at 100 %, it's good enough for me. + // If it fits at 100%, it's good enough for me. break; nLastFitZoom = nZoom; diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 44463bc9f3a5..a022d2d284ee 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -2505,7 +2505,7 @@ bool ImpSvNumberInputScan::ScanEndString( const OUString& rString, } } - if ( SkipChar('%', rString, nPos) ) // 1 % + if ( SkipChar('%', rString, nPos) ) // 1% { if (eScannedType != NUMBERFORMAT_UNDEFINED) // already another type { diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 00e87f5564cb..347c79c9cb35 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -2680,7 +2680,7 @@ Rectangle SvxIconChoiceCtrl_Impl::CalcFocusRect( SvxIconChoiceCtrlEntry* pEntry aTextRect.Bottom() + 1); } -// the hot spot is the inner 50 % of the rectangle +// the hot spot is the inner 50% of the rectangle static Rectangle GetHotSpot( const Rectangle& rRect ) { Rectangle aResult( rRect ); diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx index 92bc234bd9fd..40e3a58238fa 100644 --- a/sw/source/core/text/porlay.cxx +++ b/sw/source/core/text/porlay.cxx @@ -1521,8 +1521,8 @@ long SwScriptInfo::Compress( sal_Int32* pKernArray, sal_Int32 nIdx, sal_Int32 nL sal_uInt16 nCompCount = CountCompChg(); // In asian typography, there are full width and half width characters. - // Full width punctuation characters can be compressed by 50 % - // to determine this, we compare the font width with 75 % of its height + // Full width punctuation characters can be compressed by 50% + // to determine this, we compare the font width with 75% of its height sal_uInt16 nMinWidth = ( 3 * nFontHeight ) / 4; sal_uInt16 nCompIdx = HasKana( nIdx, nLen ); diff --git a/sw/source/core/uibase/frmdlg/colmgr.cxx b/sw/source/core/uibase/frmdlg/colmgr.cxx index 8ea5563eb474..be100431908c 100644 --- a/sw/source/core/uibase/frmdlg/colmgr.cxx +++ b/sw/source/core/uibase/frmdlg/colmgr.cxx @@ -88,7 +88,7 @@ short SwColMgr::GetLineHeightPercent() const void SwColMgr::SetLineHeightPercent(short nPercent) { - OSL_ENSURE(nPercent <= 100, "line height may be at most 100 %"); + OSL_ENSURE(nPercent <= 100, "line height may be at most 100%"); aFmtCol.SetLineHeight((sal_uInt8)nPercent); } |