Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.38 KB | None | 0 0
  1. From 47afb50ea3128f7dabb4622cc8251c1348f829f6 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= <l.lunak@collabora.com>
  3. Date: Tue, 14 Jan 2020 12:26:52 +0100
  4. Subject: [PATCH] do not ignore return value of a (confusing) function
  5.  (tdf#126248)
  6.  
  7. The two ScCellFormat::GetString() overloads are lame API, one returns
  8. the value normally and the other one returns void and uses a reference
  9. parameter. I got confused by this in 6f810e3d7dafcd7d0101173a501
  10. and didn't use the return value in one case.
  11.  
  12. Change-Id: I0b6c839f9d0299e14ea022813481802275df5ea6
  13. ---
  14. sc/source/core/data/documen6.cxx | 2 +-
  15.  1 file changed, 1 insertion(+), 1 deletion(-)
  16.  
  17. diff --git a/sc/source/core/data/documen6.cxx b/sc/source/core/data/documen6.cxx
  18. index 789f26c2c009..e6d7a315f7bf 100644
  19. --- a/sc/source/core/data/documen6.cxx
  20. +++ b/sc/source/core/data/documen6.cxx
  21. @@ -120,7 +120,7 @@ SvtScriptType ScDocument::GetCellScriptType( const ScAddress& rPos, sal_uInt32 n
  22.      if( pCell )
  23.          ScCellFormat::GetString(*pCell, nNumberFormat, aStr, &pColor, *mxPoolHelper->GetFormTable(), this);
  24.      else
  25. -        ScCellFormat::GetString(*this, rPos, nNumberFormat, &pColor, *mxPoolHelper->GetFormTable());
  26. +        aStr = ScCellFormat::GetString(*this, rPos, nNumberFormat, &pColor, *mxPoolHelper->GetFormTable());
  27.  
  28.      SvtScriptType nRet = GetStringScriptType( aStr );
  29.  
  30. --
  31. 2.16.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement